JWT
Authenticating with normal credentials (email/phone and passoword) will return a JWT. This token will be good for a pre-determined amount of time, after which the token will be refreshed.
Refreshed tokens will be provided from any endpoint that is authenticated. The general flow goes like this:
- Authenticate, and get initial token, provided in header
AuthorizationFor more information see User Authentication - Use token with any request to API (provided in the
Authorizationheader) - If token is refreshed, response will contain the
Authorizationheader containing the new token. - Update stored token, and use new one for any subsequent requests