fix: deduplicate token refresh, serialize concurrent attempts, clean up logout path

This commit is contained in:
2026-07-27 19:15:27 +00:00
parent ca110c321d
commit cc5679a1cd
4 changed files with 54 additions and 87 deletions
+2
View File
@@ -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