Bearer
token. In this method, a bearer token is provided to the user upon successful authentication. This token serves as proof of the user’s identity and is included in the authorization header of subsequent requests to access protected resources. It allows the server to verify and authorize the user’s access based on the validity and permissions associated with the token.
How does this work?
Register an account
Users register for an account ChatFly system by providing requested information, such as username and password. Your system will authenticate and store the user’s credentials.Authentication and token generation
The user sends an authentication request to your system by providing login information, such as username and password, through an API endpoint: https://backend.chatfly.co/token The response return like this:Response Example