We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 865c1fc + 2a072c5 commit 76af000Copy full SHA for 76af000
1 file changed
backend/middleware/auth.py
@@ -88,8 +88,9 @@ def _validate_jwt(token: str) -> Optional[AuthContext]:
88
except InvalidTokenError:
89
# Could be a non-JWT token (API key) -- allow fallback
90
return None
91
- except AuthenticationError as e:
92
- raise HTTPException(status_code=401, detail=str(e))
+ except AuthenticationError:
+ # Could be a non-JWT token (API key) -- allow fallback
93
+ return None
94
except Exception:
95
96
0 commit comments