fix(auth): handle all PyJWT errors gracefully and enforce link code status checks

This commit is contained in:
2026-08-19 21:12:45 +07:00
parent 2e01b6502c
commit 77ef4aaa57
5 changed files with 22 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ def decode_jwt(
) -> dict[str, Any] | None:
try:
return jwt.decode(token, public_key, algo)
except jwt.ExpiredSignatureError:
except jwt.exceptions.PyJWTError:
return