JWT Authentication - gotmoby/moby-api-documentation GitHub Wiki
JWT Authentication is not stateless. It is handy for creating a front end web app to communicate with the API.
In order to use JWT you must first make a request to the login route. A token will be handed back and should be placed in the header for all other requests to the API that require authentication.
Please visit the login route documentation for how to retrieve your token.
The following parameter must be added to every request after receiving the token.
Parameter Name | Location |
---|---|
Authorization: Bearer {token} | Header |
The token will last 15 minutes, then you must make another request to the login route to get another token.