mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2026-02-04 10:14:15 +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
|
@staticmethod
|
||||||
def __get_state():
|
def __get_state():
|
||||||
return session.pop("DISCORD_OAUTH2_STATE", str())
|
return session.get("DISCORD_OAUTH2_STATE", str())
|
||||||
|
|
||||||
def create_session(
|
def create_session(
|
||||||
self, scope: list = None, *, data: dict = None, prompt: bool = True,
|
self, scope: list = None, *, data: dict = None, prompt: bool = True,
|
||||||
|
|||||||
Reference in New Issue
Block a user