An incomplete list of supported backend endpoints. See more in Configure REST API.
Users Endpoints
Signup, login and password reset belong to the Local login provider and are served at /api/auth/local/<route>. The same routes stay at /api/users/<route> for existing clients.
POST /api/users/login
Also POST /api/auth/local/login.
POST /api/users/signup
Also POST /api/auth/local/signup.
POST /api/users/resetPassword
Also POST /api/auth/local/resetPassword.
GET /api/users/logged_in
Checks whether a user is currently logged in to the current client’s session. Uses cookie token.
Parameters
NONE
Returns
If logged in (200):
{
status: "success",
message: `'{user}' is logged in to this session.`,
body: {
loggedIn: true,
user: `{user}`
}
}
If not logged in (200):
{
status: "failure",
message: `No user is logged in to this session.`,
body: {
loggedIn: false,
user: null
}
}