Fix magic-link sign-in: implicit flow + redirect to /account #138
Reference in New Issue
Block a user
Delete Branch "fix/magic-link-flow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The 'Continue with email' button on /account was broken for sign-in:
PKCE/implicit mismatch —
account-auth.elusedflowType: 'pkce', butaccount-dashboard.eluses'implicit'. After clicking the magic link, the dashboard client couldn't exchange the PKCE code, so sign-in silently failed.Wrong redirect — No
emailRedirectTowas set, so the link landed on the site homepage instead of/account.Both fixed: match implicit flow, add
emailRedirectTo: origin + '/account'.