Skip to content

Log in with local credentials

POST
/auth/local/login
curl --request POST \
--url https://example.com/v1/auth/local/login \
--header 'Content-Type: application/json' \
--data '{ "email": "hello@example.com", "password": "example" }'
Media typeapplication/json
object
email
required
string format: email
password
required
string format: password

Example generated

{
"email": "hello@example.com",
"password": "example"
}

Authenticated; returns a JWT and sets a refresh cookie

Media typeapplication/json
object
token
string
user
object
id
string format: uuid
email
string format: email
name
string
role
string
Allowed values: user admin super_admin
active
boolean

Example

{
"user": {
"role": "user"
}
}

Invalid credentials