Skip to content
Torii docs

Login

POST
/_torii/auth/login
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.

Origin
string
Host
string
_is_native
boolean
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
>= 1 characters
Example
user@example.com
password
required

User’s password

string
>= 1 characters

OK

Media type application/json
object
Example generated
{}