diff options
Diffstat (limited to 'jb/api/magic_token.py')
| -rw-r--r-- | jb/api/magic_token.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jb/api/magic_token.py b/jb/api/magic_token.py index e0a1cca..562ba81 100644 --- a/jb/api/magic_token.py +++ b/jb/api/magic_token.py @@ -43,10 +43,10 @@ def consume_magic_token(token: str) -> str: return user_email -def create_amt_account_link_token(user: User, amt_worker_id: str) -> str: +def create_amt_account_link_token(email: str, amt_worker_id: str) -> str: """Bind an email and AMT worker ID to an opaque, short-lived token.""" data = AmtAccountLink( - email=user.email, + email=email, amt_worker_id=amt_worker_id, ) token = secrets.token_urlsafe(32) |
