mirror of
https://github.com/Michatec/MiniFaceBook.git
synced 2026-03-31 23:46:30 +02:00
Files
This commit is contained in:
12
routes/example oauth.py
Normal file
12
routes/example oauth.py
Normal 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'}
|
||||
)
|
||||
Reference in New Issue
Block a user