1
0

this is cookie

This commit is contained in:
オスカー、 2023-03-22 14:27:49 +00:00 committed by GitHub
parent b2c8ee3d6c
commit 84185ad51c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
app.py
View File

@ -94,7 +94,7 @@ async def validate(data: dict) -> bool:
return False
@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)
user = await client.fetch_user(token)