mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2025-12-10 12:29:30 +02:00
Add DISCORD_USER_ID in SESSION_KEYS. Try removing user from cache if exists
This commit is contained in:
@@ -61,6 +61,10 @@ class DiscordOAuth2Session(_http.DiscordOAuth2HttpClient):
|
||||
to go through discord authorization token grant flow again.
|
||||
|
||||
"""
|
||||
|
||||
user_id = session.get("DISCORD_USER_ID")
|
||||
self.users_cache.pop(user_id, None)
|
||||
|
||||
for session_key in self.SESSION_KEYS:
|
||||
try:
|
||||
session.pop(session_key)
|
||||
|
||||
Reference in New Issue
Block a user