I would like to understand the big idea of how JWT authentication works in AdonisJs.
Suppose I sign in a user to my application. I generate a JWT token for him. Now please tell me if my understanding is Ok:
- This JWT token must be saved on the client side of the application so that the user can perform GET and POST requests to the backend
- The user’s HTTP request must have
Authorization = Bearer <token>embedded.
Is my understanding right or no?