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 2ea9beb commit 9f64b06Copy full SHA for 9f64b06
src/murfey/server/api/auth.py
@@ -175,12 +175,15 @@ async def validate_instrument_token(
175
if expiry_time := decoded_data.get("expiry_time"):
176
if expiry_time < time.time():
177
raise JWTError
178
+ # Check that the decoded session corresponds to the visit
179
elif decoded_data.get("session") is not None:
- # Check that the decoded session corresponds to the visit
180
if not validate_session_against_visit(
181
decoded_data["session"], decoded_data["visit"]
182
):
183
184
+ # Check for Murfey TUI tokens (just a 'user' key)
185
+ elif decoded_data.get("user") is not None:
186
+ pass
187
else:
188
189
except JWTError:
0 commit comments