fix: deduplicate token refresh, serialize concurrent attempts, clean up logout path
This commit is contained in:
@@ -263,8 +263,10 @@ def delete_user(username: str) -> bool:
|
||||
if user is None:
|
||||
raise ValueError(f"User {username!r} not found")
|
||||
|
||||
blacklist_active_refresh_token(username)
|
||||
db = get_db()
|
||||
db.run(Q_DELETE_USER, (username,))
|
||||
_cleanup_blacklist()
|
||||
return True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user