mirror of
https://github.com/Michatec/MiniFaceBook.git
synced 2026-03-31 23:46:30 +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'}
|
|
) |