this is cookie
This commit is contained in:
parent
b2c8ee3d6c
commit
84185ad51c
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -94,7 +94,7 @@ async def validate(data: dict) -> bool:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@app.get('/callback/discord')
|
@app.get('/callback/discord')
|
||||||
async def update_metadata(response: Response, code: str, steam_id: str = Cookie()):
|
async def update_metadata(response: Response, code: str, steam_id: Cookie()):
|
||||||
token = await client.get_access_token(code)
|
token = await client.get_access_token(code)
|
||||||
user = await client.fetch_user(token)
|
user = await client.fetch_user(token)
|
||||||
|
|
||||||
|
|
Reference in a new issue