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.

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.

Email verification required

When the project requires email verification before sign-in (Dashboard → Settings → SDK):
  • An unknown email, an account without a password, and a wrong password all get the same answer, 401 auth/invalid-credentials ("Email or password is incorrect."), so sign-in doesn’t reveal whether an email has an account. The auth/no-user-found and auth/wrong-password errors below, and the 403 form of auth/invalid-credentials, are not returned.
  • An account that has a password and an unconfirmed email is refused with 403 auth/email-not-verified once the password is confirmed correct, and is emailed a new confirmation link (unless one went out in the last 10 minutes). Emails to one address are limited to one every 10 minutes and five a day.
  • Accounts that sign in through your own login (external sign-in) aren’t affected.

Error Responses

Only when the project requires email verification before sign-in: the password is correct, but the account’s email isn’t confirmed. A confirmation link is emailed (unless one went out in the last 10 minutes).
403 when the user exists but has no password set (e.g. an OAuth-only account).The same code also arrives as 400 for a malformed request body — a missing or non-string email or password. Sign-in is the one auth route whose body validation reports auth/invalid-credentials rather than auth/invalid-body, so this code has two statuses. Branch on the status as well as the code if you need to tell “fix your request” from “these credentials will never work”.
Rate limit: 25 requests per 5 minutes per IP. Exceeding it returns 429 with the plain-text message Too many sign in attempts, please wait 5 minutes and no code.

See Also