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.
1 parent 27a681a commit d5efb6fCopy full SHA for d5efb6f
src/murfey/instrument_server/api.py
@@ -51,6 +51,9 @@
51
def validate_session_token(
52
session_id: int, token: Annotated[str, Depends(oauth2_scheme)]
53
):
54
+ """
55
+ Validates the token received from the backend server
56
57
try:
58
decoded_data = jwt.decode(
59
token,
@@ -62,7 +65,7 @@ def validate_session_token(
62
65
except JWTError:
63
66
raise HTTPException(
64
67
status_code=status.HTTP_401_UNAUTHORIZED,
- detail="Could not validate credentials",
68
+ detail="Could not validate credentials from backend",
69
headers={"WWW-Authenticate": "Bearer"},
70
)
71
return session_id
0 commit comments