aboutsummaryrefslogtreecommitdiff
path: root/jb/api/magic_token.py
diff options
context:
space:
mode:
authorMax Nanis2026-09-10 01:00:39 -0700
committerMax Nanis2026-09-10 01:00:39 -0700
commit4dca7296742b607e74f16e2f6484c51163a41ace (patch)
tree0839c16d0905deb587d3ee25ff93fd3ccf7eeeb6 /jb/api/magic_token.py
parent832aecaddce80e312095ecdb572d7756eb9df5e9 (diff)
downloadamt-jb-4dca7296742b607e74f16e2f6484c51163a41ace.tar.gz
amt-jb-4dca7296742b607e74f16e2f6484c51163a41ace.zip
using model_validator on GRLSettings. Allows null default values, then to asser them on load. Required so pydantic_settings can be loaded in tests without params
Diffstat (limited to 'jb/api/magic_token.py')
-rw-r--r--jb/api/magic_token.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/jb/api/magic_token.py b/jb/api/magic_token.py
index b7f7575..5f78996 100644
--- a/jb/api/magic_token.py
+++ b/jb/api/magic_token.py
@@ -40,7 +40,7 @@ def consume_magic_token(token: str) -> str:
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Invalid or expired magic token",
)
- return user_email
+ return str(user_email)
def create_amt_account_link_token(email: str, amt_worker_id: str) -> str: