mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2025-12-09 20:09:30 +02:00
Do not immediately pop the state to prevent race conditions
This commit is contained in:
@@ -55,7 +55,7 @@ class DiscordOAuth2Session(_http.DiscordOAuth2HttpClient):
|
||||
|
||||
@staticmethod
|
||||
def __get_state():
|
||||
return session.pop("DISCORD_OAUTH2_STATE", str())
|
||||
return session.get("DISCORD_OAUTH2_STATE", str())
|
||||
|
||||
def create_session(
|
||||
self, scope: list = None, *, data: dict = None, prompt: bool = True,
|
||||
|
||||
Reference in New Issue
Block a user