We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5f8adc commit a0eeff1Copy full SHA for a0eeff1
backend/routes/auth/authorize.py
@@ -54,7 +54,10 @@ async def process_token(
54
"refresh": bearer_token["refresh_token"],
55
"user_details": user_details,
56
"in_guild": bool(member),
57
+ # Legacy key, we should use exp and use JWT expiry as below it.
58
"expiry": token_expiry.isoformat(),
59
+ # Correct JWT expiry key:
60
+ "exp": token_expiry
61
}
62
63
token = jwt.encode(data, SECRET_KEY, algorithm="HS256")
0 commit comments