Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问一下api模块里的jwt问题 #1

Closed
WuJiY opened this issue Jan 24, 2018 · 1 comment
Closed

请问一下api模块里的jwt问题 #1

WuJiY opened this issue Jan 24, 2018 · 1 comment

Comments

@WuJiY
Copy link

WuJiY commented Jan 24, 2018

如果jwt过期了怎么保持登录状态?还有就是如何退出?

@yupoxiong
Copy link
Owner

比如token设置了一个小时过期,可以给token加一个刷新时间,比如12小时,如果在过期12小时内,客户端可以用这个过期的token换取新的token,这样来保持登录状态,退出的话,可以配合服务端设置token黑名单来使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants