Gregniuki commited on
Commit
e0fefa6
1 Parent(s): 98f984a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -406,7 +406,7 @@ async def get_protected(
406
  # Try to get the token from the query parameter first, then fall back to the cookie
407
  token = token or request.cookies.get("access_token")
408
  if not token:
409
- raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="Not authenticated")
410
 
411
  # Here verify_token is used directly in the endpoint
412
  # If the token is invalid, verify_token will raise an HTTPException and the following lines will not be executed
 
406
  # Try to get the token from the query parameter first, then fall back to the cookie
407
  token = token or request.cookies.get("access_token")
408
  if not token:
409
+ raise HTTPException(status_code=status.HTTP_401_UNAUTHORIZED, detail="Not authenticated xxx")
410
 
411
  # Here verify_token is used directly in the endpoint
412
  # If the token is invalid, verify_token will raise an HTTPException and the following lines will not be executed