mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2026-02-04 10:14:15 +02:00
Change the type to dict
This commit is contained in:
@@ -106,12 +106,12 @@ class DiscordOAuth2HttpClient(abc.ABC):
|
|||||||
"refresh_token": token["refresh_token"]
|
"refresh_token": token["refresh_token"]
|
||||||
}
|
}
|
||||||
|
|
||||||
def _make_session(self, token: str = None, state: str = None, scope: list = None) -> OAuth2Session:
|
def _make_session(self, token: dict = None, state: str = None, scope: list = None) -> OAuth2Session:
|
||||||
"""A low level method used for creating OAuth2 session.
|
"""A low level method used for creating OAuth2 session.
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
----------
|
----------
|
||||||
token : str, optional
|
token : dict, optional
|
||||||
The authorization token to use which was previously received from authorization code grant.
|
The authorization token to use which was previously received from authorization code grant.
|
||||||
state : str, optional
|
state : str, optional
|
||||||
The state to use for OAuth2 session.
|
The state to use for OAuth2 session.
|
||||||
|
|||||||
Reference in New Issue
Block a user