Skip to main content
Sign In
Authenticates an existing user by email and password. Returns an access token, refresh token, and the user’s profile.

Body Parameters

string
required
User’s registered email address.
string
required
User’s password.
object
How the new confirmation email is sent when sign-in is refused because the account’s email isn’t confirmed. Ignored when the project doesn’t require email verification before sign-in. When it’s left out, the email uses what the user chose at sign-up (for 24 hours), else a link.

Email verification required

When the project requires email verification before sign-in (Dashboard → Settings → SDK), an account that has a password must confirm its email before it can sign in. Once the password is confirmed correct, an unconfirmed account is refused with 403 auth/email-not-verified and sent a new confirmation email (unless one went out in the last 10 minutes). A wrong password or an unknown email still gets the single 401 below, so the new error only appears after a correct password. Accounts that have no password (they sign in only through a provider) and accounts that sign in through your own login (external sign-in) aren’t affected. The emails sent to one address are limited to one every 10 minutes and five a day. Past that, sign-in still returns the 403 but sends nothing, and the link or code already in the inbox keeps working.

Response

boolean
true on successful authentication.
string
Short-lived JWT access token. Expires in 30 minutes.
string
Long-lived JWT refresh token. Expires in 30 days. Use it to request a new access token when the current one expires.
object
The authenticated user’s profile.

Error Responses

The same answer for an email with no account, an account with no password (e.g. one created through OAuth), and a wrong password, so sign-in never reveals whether an email has an account. To offer “create an account” or “sign in with Google” after a failure, show those options alongside the error rather than choosing between them.
The password is correct, but the project requires email verification before sign-in and the account’s email isn’t confirmed. A new confirmation email is sent, unless one went out in the last 10 minutes or the per-address limit is reached. In code mode the body carries verificationId: send it with the emailed code to Verify Email, then sign in again. When no new email was sent, verificationId is the one for the code already sent; if no code is outstanding, it’s absent.
emailVerification.redirectUrl isn’t on the project’s Verified Domains. Only checked when the project requires email verification before sign-in.
emailVerification is malformed. Only checked when the project requires email verification before sign-in.
A missing or malformed email or password. param names the field.
Rate limit: 25 requests per 5 minutes per IP. Exceeding it returns 429 request/rate-limited, with Too many sign in attempts, please wait 5 minutes as error.

See Also