7a00a1ee

By: Michael Lynch <git@mtlynch.io>

Move login redirect decision into LoginTokenCreator

Instead of a redirectLoginTokens flag on handlers.Server, the prod
LoginTokenCreator now returns an empty Entry after sending the email.
The handler redirects only when the token is non-empty, which happens
naturally in dev mode (no email sent) and never in prod.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Suite timing

Time to Start Worker time Duration Time to finish Idle
Config 1s 9s 9s 10s 1s
Eval 9s 1m56s 1m56s 2m05s 0s
Build 28s 8m43s 1m59s 2m27s 0s
Suite 1s 10m49s 2m25s 2m27s 1s

Timeline

0s10s20s30s40s50s1m1m10s1m20s1m30s1m40s1m50s2m2m10s2m20s