Custom authentication
This page explains how to act on behalf of other users with logintokens and refreshtokens.
x-api-key: mJE5v1zHs.... logintoken: r9BPAFW.....
post
Body
emailstring · min: 1Required
Email of the user.
passwordstring · min: 1Required
Password matching the user email.
Responses
200
OK
400
Bad Request
401
Unauthorized
429
Too Many Requests
post
/auth/loginpost
Query parameters
allDevicesbooleanOptional
When set to true all the user's logintokens and refreshtokens will be destroyed.
Header parameters
logintokenstringOptional
Responses
200
OK
401
Unauthorized
post
/auth/logoutpost
Body
refreshtokenstringOptional
A one-time-use refreshtoken obtained from the login endpoint.
Responses
200
OK
400
Bad Request
post
/auth/refreshtokenLast updated
Was this helpful?
