Authenticating through email and password
This method allows users to authenticate using their email and password. The user will receive a JWT token and a refresh token that must be used in all future requests.
Description
In order to use endpoints that require an authenticated user, you need to authenticate them via this method. The credentials are submitted in the body of a POST request, and upon success, the server will return both an authorization token and a refresh token.
The email and password method is commonly used for:
- Traditional authentication via user interfaces (mobile apps, web platforms).
- Scenarios where the user provides their credentials directly for verification.
Make sure to include the returned token in the User-Authorization
header for subsequent requests:
http
User-Authorization: Bearer {token}