shelcia / mocker

Mocker can generate mock data with API endpoints, powered by faker.js
https://mocker-gen.netlify.app/
GNU General Public License v3.0
17 stars 29 forks source link

JWT need to be expired #140

Closed SomSingh23 closed 9 months ago

SomSingh23 commented 9 months ago

@shelcia As of now, once a JWT is generated and stored in the client's local storage, it remains valid indefinitely unless the user actively logs out. If the user never logs out, the token persists indefinitely. While this approach facilitates password retention for users, it is recommended to implement an automatic logout mechanism after a specified period. This practice enhances security and reduces the risk of unauthorized access to the user's account.