Skip to content

Email credentials

Credentials Authentication

The credentials authentication method allows users to log in using their email and password. The password is securely hashed using.

Environment Variables

  • AUTH_CREDENTIALS_LOGIN: Enables or disables credentials login. Set to false to disable.
  • AUTH_ENFORCE_EMAIL_VERIFICATION: Enforces email verification. Set to true to enforce. If this is enabled user must use the magic link to verify their email before being able to login using credentials method.
  • NEXT_AUTH_SECRET: Secret key used for signing tokens.