You can do login by sending an object like the following to /auth/login/
Request:
The response is the credentials with the access token, like this:
Note: The access token is valid for 8 hours.
Get user with session
You can get the profile the current user with session if in the headers include the Authorization key with the value Bearer {your access token} to /auth/profile
Request:
Response:
Get a new Access Token by refreshing the token
Request:
The response is the user information with the new access JWT token and the expiration time, like this:
You can use this endpoint in cases when you have lost session or need to obtain a new token.