Overview of NextAuth.js Email Provider
v3The Email provider enables 'magic link' authentication, allowing users to sign in by clicking a link sent to their email address. This is useful as a primary sign-in method or as a fallback for users who lose access to OAuth accounts.
Key Constraints:
- A database must be configured to use the Email provider; it cannot function with JWT-only sessions.
- On initial sign-in, a Verification Token is sent to the user. By default, this token is valid for 24 hours.
- User accounts are only created in the database after the user successfully verifies their email address via the link.