Email codes and links
Send a six-digit code or a magic link to the user's address.
- Code
- Link
await signIn.create({ identifier: email, strategy: "email_code" });
await signIn.attemptFirstFactor({ strategy: "email_code", code });await signIn.create({ identifier: email, strategy: "email_link", redirectUrl: "/verify" });Codes expire after 10 minutes. Links expire after 15 and work once.
Updated
What did you think of this content?