Login
POST
/_torii/auth/login
const url = 'https://your-app.torii.so/_torii/auth/login?_is_native=false';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"user@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://your-app.torii.so/_torii/auth/login?_is_native=false' \ --header 'Content-Type: application/json' \ --data '{ "email": "user@example.com", "password": "example" }'Authenticates user with email and password, returns short-lived JWT.
Parameters
Section titled “ Parameters ”Header Parameters
Section titled “Header Parameters ” Origin
string
Host
string
Query Parameters
Section titled “Query Parameters ” _is_native
boolean
Request Body required
Section titled “Request Body required ” Media type application/json
Payload for user login with email and password. Project environment is identified by the X-API-Key header.
object
email
required
Email address of the user
string format: email
Example
user@example.com password
required
User’s password
string
Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}