Merge pull request 'Fix except clause syntax in JWT verification fallback' (#81) from feature/fix-except-clause-syntax-in-jwt-verification into develop
All checks were successful
CI / backend-tests (push) Successful in 30s
CI / frontend-tests (push) Successful in 28s

Reviewed-on: #81
This commit was merged in pull request #81.
This commit is contained in:
2026-03-22 09:53:43 +01:00

View File

@@ -71,7 +71,9 @@ def _verify_jwt(token: str) -> dict | None:
algorithms=["RS256"],
audience="authenticated",
)
except jwt.InvalidTokenError, PyJWKClientError:
except jwt.InvalidTokenError:
pass
except PyJWKClientError:
pass
return _verify_jwt_hs256(token)