mirror of
https://github.com/bitbaum/accountkit.git
synced 2026-12-04 05:37:35 +01:00
Every bitbaum product needs people in and using it with as little friction as possible. With mail configured, AccountKit used to refuse a password sign-in until the address was confirmed, and a first-password claim gave no session until the link was followed. Now, by default, a sign-up is signed in at once and is mailed a confirmation link. An unconfirmed account signs in, and a claim signs the person in and mails the link. Following the link still sets emailVerified, which a product reads to reserve powers (staff, payouts) for confirmed addresses. A product that needs the wall opts in with emailConfirmation: "before-sign-in" (server, Next runtime, and signInMethods' third argument). It applies only with mail, as before. Claude-Session: https://claude.ai/code/session_019MDtmuvj9Cecd7DR2Nbirb Co-authored-by: Claude <noreply@anthropic.com>