In order to do some actions, a guest must be authenticated as a user.
POST /auth
Get the token of a user, to authenticate it. Returns a token string and a user field corresponding to a user object including permissions.
| Field | Type | Description |
|---|---|---|
| string | user's email | |
| password | string | user's password |
To use authentication in requests that require it, add the Authorization header with your token inside.
GET /auth/data
Get the data of a user based on his token, to re-authenticate him. Retuns a user object including permissions and corresponding to the token inside the Authorization header.