apisix-dashboard
apisix-dashboard copied to clipboard
using dashboard for a while , the token expired
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [*] Question or discussion
- [ ] Bug
- [*] Requirements
- [ ] Feature or performance improvement
- [ ] Other
when i login with admin account and using dashboard for a while , the token expired, i think it's not user-friendly...
Is the refresh of the token done on the front end? Or manage API?
There have 2 ways to implement this feature:
- Implement this feature on the backend, so if the token should expire is rely on some cache DB, e.g Redis.
- JWT with Refresh logic, every refresh action will generate a new token.
Reference
[1] https://developers.weixin.qq.com/doc/oplatform/Website_App/WeChat_Login/Authorized_Interface_Calling_UnionID.html
3600s is the default expired due time.
