From f3e37a1c73bd0d68966f24995011b5c93305273d Mon Sep 17 00:00:00 2001 From: stuppie Date: Tue, 8 Sep 2026 16:02:08 -0600 Subject: email integration --- jb/api/magic_token.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'jb/api') 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) -- cgit v1.2.3