Do not get state implicitly

This commit is contained in:
thec0sm0s
2020-10-26 00:13:28 +05:30
parent 87fe69e9e2
commit 10951bfed3

View File

@@ -118,7 +118,7 @@ class DiscordOAuth2HttpClient(abc.ABC):
return OAuth2Session(
client_id=self.client_id,
token=token or self.get_authorization_token(),
state=state or session.get("DISCORD_OAUTH2_STATE"),
state=state,
scope=scope,
redirect_uri=self.redirect_uri,
auto_refresh_kwargs={