Oauth Anthentication #48

Merged
Xefir merged 13 commits from v2 into master 2022-09-12 18:47:37 +00:00
Showing only changes of commit 4117a189e6 - Show all commits

View File

@ -3,7 +3,7 @@ import logging
from datetime import datetime, timedelta
from functools import wraps
from os import environ, path
from typing import Dict, List, Optional
from typing import Dict, Optional
from disnake import Client, Guild
from dotenv import load_dotenv
@ -78,9 +78,7 @@ def token_updater(token: str):
session["oauth2_token"] = token
def make_session(
token: Optional[Dict[str, str]], state=Optional[str], scope=Optional[List[str]]
) -> OAuth2Session:
def make_session(token: Optional[Dict[str, str]], state=Optional[str]) -> OAuth2Session:
return OAuth2Session(
client_id=OAUTH2_CLIENT_ID,
token=token,