Auth

Login with email/password

Authenticate with email and password. Returns access + refresh tokens. Only works for accounts that have been linked via /v1/auth/link-email.

post/v1/auth/login-email

Request

  • Base URL: http://localhost:4000
  • URL: http://localhost:4000/v1/auth/login-email
  • Auth: none declared

Request body

emailstring email required
passwordstring required

Response

Login successful

accessTokenstring

JWT access token (15min expiry)

refreshTokenstring nullable

Refresh token (30 day expiry, single-use). Null when resuming an existing device session — keep the stored token.

expiresIninteger

Access token TTL in seconds

tokenTypestring

Example response

{
  "expiresIn": 900,
  "tokenType": "Bearer"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.