I am developing Role-based access control with JWT.
I have tried the example code in the following article (‘Usage’ section).
But I found out that the default expiration period is only 3600sec (1hour).
The following image is a Chrome screenshot of localStorage (expires_in: 3600
).
1 hour is is too short for my application.
Is there any way to change the expiration period from 1 hour to longer value (for example 1 day, or 1 week).
I have already read the following articles and documents, but I could not find any information related to my topic.
- Authenticate users with Netlify Identity | Netlify Docs
- Registration and login | Netlify Docs
- Role-based access control with JWT | Netlify Docs
- netlify/gotrue: An SWT based API for managing users and issuing SWT tokens
- How to Handle Expiring Netlify Identity JWT? - Discussions & Questions - RedwoodJS Community