apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

using dashboard for a while , the token expired

Open idbeta opened this issue 6 years ago • 3 comments

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...

idbeta avatar Sep 24 '20 09:09 idbeta

Is the refresh of the token done on the front end? Or manage API?

membphis avatar Sep 24 '20 13:09 membphis

There have 2 ways to implement this feature:

  1. Implement this feature on the backend, so if the token should expire is rely on some cache DB, e.g Redis.
  2. 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

juzhiyuan avatar Sep 24 '20 15:09 juzhiyuan

3600s is the default expired due time.

image

juzhiyuan avatar Dec 21 '20 04:12 juzhiyuan