Skip to content

Commit

Permalink
Fix login page token
Browse files Browse the repository at this point in the history
  • Loading branch information
jontyms committed Dec 21, 2024
1 parent 6da272a commit 1c7e0ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1c7e0ca

Please sign in to comment.