This commit is contained in:
2025-09-27 20:49:58 +02:00
commit 767fb638ce
58 changed files with 6724 additions and 0 deletions

12
routes/example oauth.py Normal file
View File

@@ -0,0 +1,12 @@
from authlib.integrations.flask_client import OAuth
oauth = OAuth()
discord = oauth.register(
name='discord',
client_id='YOUR_CLIENT_ID',
client_secret='YOUR_CLIENT_SECRET',
access_token_url='https://discord.com/api/oauth2/token',
authorize_url='https://discord.com/api/oauth2/authorize',
api_base_url='https://discord.com/api/',
client_kwargs={'scope': 'identify email'}
)