Refresh
All the following requests require a valid IDToken in the authentication header
Headers:
Authentication: Bearer {IDToken}
Refresh API
GET
With a GET request to
/auth/refresh/
containing the following as data
username: The users email password: The users password
If everything goes well with the API will return
- a status code of 202
- an array containing
- a dictionary of the tokens (ID, Access and Refresh)
- user info (name, email, surname etc.)
Errors
Error Code 500
This error is used for general errors on our backend, if this occurs contact Arboair with the code, time of API request and (if given) the error reason as well
Error Code 400
This error describes an error with Cognito and will contain the reason in the response data.
Some possible reasons are Too many attempt to log in, wrong password, etc.