Dev/staging password login
POST
/auth/dev-login
const url = 'https://example.com/api/auth/dev-login';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/auth/dev-login \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "password": "example" }'Email+password login for local development or explicit DEV_LOGIN_ENABLED environments. Returns JWT. Disabled for production preview origins unless explicitly enabled.
Request Body required
Section titled “Request Body required ” Media type application/json
object
email
required
string format: email
password
required
string
Responses
Section titled “ Responses ”Auth tokens
Media type application/json
object
access_token
required
string
refresh_token
required
string
expires_in
integer
Invalid request
Media type application/json
object
error
required
Human-readable error message
string
code
Stable machine-readable error code for client branching
string
fieldErrors
First validation message per field path
object
key
additional properties
string
issues
Structured validation issues (Zod)
Array<object>
object
path
required
string
message
required
string
retryAfter
Seconds until rate limit resets (429 responses)
number
Forbidden
Media type application/json
object
error
required
Human-readable error message
string
code
Stable machine-readable error code for client branching
string
fieldErrors
First validation message per field path
object
key
additional properties
string
issues
Structured validation issues (Zod)
Array<object>
object
path
required
string
message
required
string
retryAfter
Seconds until rate limit resets (429 responses)
number
Too many login attempts