mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2025-12-10 12:29:30 +02:00
try getting oauth2 token from session
This commit is contained in:
@@ -22,7 +22,7 @@ class DiscordOAuth2HttpClient(object):
|
|||||||
def _make_session(self, token=None, state=None, scope=None):
|
def _make_session(self, token=None, state=None, scope=None):
|
||||||
return OAuth2Session(
|
return OAuth2Session(
|
||||||
client_id=self.client_id,
|
client_id=self.client_id,
|
||||||
token=token,
|
token=token or session.get("oauth2_token"),
|
||||||
state=state,
|
state=state,
|
||||||
scope=scope,
|
scope=scope,
|
||||||
redirect_uri=self.redirect_uri,
|
redirect_uri=self.redirect_uri,
|
||||||
|
|||||||
Reference in New Issue
Block a user