From 1c7e0ca5511e19f3490e70124cddc079456b7f06 Mon Sep 17 00:00:00 2001 From: Jonathan Styles Date: Fri, 20 Dec 2024 21:25:34 -0500 Subject: [PATCH] Fix login page token --- app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.py b/app/main.py index df335ac..0dc9d21 100644 --- a/app/main.py +++ b/app/main.py @@ -136,6 +136,7 @@ async def index(request: Request, token: Optional[str] = Cookie(None)): Settings().jwt.secret.get_secret_value(), algorithms=Settings().jwt.algorithm, ) + user_jwt = user_jwt.claims is_full_member: bool = user_jwt.get("is_full_member", False) is_admin: bool = user_jwt.get("sudo", False) user_id: bool = user_jwt.get("id", None)