User story: As a user, I want to stay logged in when I revisit the app later so that I don’t have to enter my credentials every time. Acceptance Criteria: - [ ] If a user successfully signed up and his account is created then a unique JWT Verification token should be generated. - [ ] If the user sign in and the user’s account credentials are verified, then a unique JWT Authorization token should be [Implement](https://www.npmjs.com/package/jose) for the user’s session. - [ ] The token should be passed to the frontend and stored in the local Storage. - [ ] The JWT token should store the user’s id. - [ ] The token should have an expiration time - one day. The token should become invalid and unusable after the expiration time.
User story:
As a user, I want to stay logged in when I revisit the app later so that I don’t have to enter my credentials every time.
Acceptance Criteria: