Skip to content

Commit

Permalink
refactor: Improve JWT error logging for better debugging of authentic…
Browse files Browse the repository at this point in the history
…ation issues (#5885)

fix: improve JWT error logging for better debugging of authentication issues
  • Loading branch information
ogabrielluiz authored Jan 29, 2025
1 parent 4658f08 commit 3e2e2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/base/langflow/services/auth/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def get_current_user_by_jwt(
headers={"WWW-Authenticate": "Bearer"},
)
except JWTError as e:
logger.exception("JWT decoding error")
logger.debug("JWT validation failed: Invalid token format or signature")
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Could not validate credentials",
Expand Down

0 comments on commit 3e2e2ce

Please sign in to comment.