diff options
Diffstat (limited to '')
| -rw-r--r-- | backend/routes/auth/authorize.py | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/backend/routes/auth/authorize.py b/backend/routes/auth/authorize.py index 8fe7e85..7f18cb4 100644 --- a/backend/routes/auth/authorize.py +++ b/backend/routes/auth/authorize.py @@ -54,7 +54,10 @@ async def process_token(          "refresh": bearer_token["refresh_token"],          "user_details": user_details,          "in_guild": bool(member), +        # Legacy key, we should use exp and use JWT expiry as below it.          "expiry": token_expiry.isoformat(), +        # Correct JWT expiry key: +        "exp": token_expiry      }      token = jwt.encode(data, SECRET_KEY, algorithm="HS256") | 
