Record renderer attachment when L1 verifies token

When L1 successfully calls /auth/verify, the user's attachment to
that L1 server is recorded in the user_renderers table.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
gilesb
2026-01-09 17:51:15 +00:00
parent 5a8ce51c83
commit 813f6a1d44

View File

@@ -1332,6 +1332,9 @@ async def verify_auth(
if not username:
raise HTTPException(401, "Invalid token")
# Record the attachment (L1 successfully verified user's token)
await db.attach_renderer(username, l1_normalized)
return {"username": username, "valid": True, "l1_server": request.l1_server}