mirror of
https://github.com/Michatec/MiniFaceBook.git
synced 2026-04-01 07:56:28 +02:00
12 lines
402 B
Python
12 lines
402 B
Python
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'}
|
|
) |