Skip to content
id0n

Email and password

Sign-up and sign-in with email and password, with verification and password reset.

Enabled per environment

id0n enables sign-in methods and features for each Legation environment. Ask id0n to turn on what your application needs.

See Basic usage for sign-up and sign-in fields.

Email verification

Legation can send a verification email. If your environment requires verification, sign-in for an unverified user fails with EMAIL_NOT_VERIFIED, and Legation can send the verification email again.

ErrorMeaning
EMAIL_ALREADY_VERIFIEDNothing to verify.
VERIFICATION_EMAIL_NOT_ENABLEDVerification emails are not enabled for the environment.
INVALID_TOKEN, TOKEN_EXPIREDThe link is wrong or too old. Request a new one.

Password reset

  1. The user requests a reset for their email.
  2. Legation emails a reset link.
  3. The user opens the link and sets a new password.

Change or set a password

Changing a password requires the current password and a fresh session. Users who signed up without a password can set one; PASSWORD_ALREADY_SET means they already have one.

On this page

Ask AI

Answers come from the published id0n docs, with links to their sources.