Auth
Configure the authentication flow for your endpoints
Last updated
Configure the authentication flow for your endpoints
Last updated
You can configure authentication settings for each environment (e.g., development, production).
These settings are specific to the environment you are working in.
The secret key is used to decode (deparse) the token passed in the header of each request.
The secret key must match the key used to generate the token. If the keys do not match, the token becomes invalid, leading to authentication errors.
Secret keys are stored securely through environment variables, and you can select them from a list of secrets in a dropdown menu for easy configuration.
Specify the fields that should be present inside the token (payload).
When the token is decoded, these fields are checked to ensure the request is valid.
If the required fields are missing, the system will return an "unauthorized" error for each request.
You can configure a custom error message to be returned in the response if:
The token is invalid.
The token cannot be authenticated for other reasons.
This allows you to provide user-friendly error messages.