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

jwt 刷新令牌问题? #9

Open
zDream opened this issue Feb 1, 2018 · 3 comments
Open

jwt 刷新令牌问题? #9

zDream opened this issue Feb 1, 2018 · 3 comments

Comments

@zDream
Copy link

zDream commented Feb 1, 2018

我看到你用jwt 生成token 有效期是24h。我觉得这样不太好。也不实用

我想实现如下效果

令牌有效期为两个小时,当过了一个小时后,后台延长有效期时间再为两个 小时,

那么 用jwt 生成token 怎么实现刷新问题呢?

@zDream
Copy link
Author

zDream commented Feb 1, 2018

看到你这个脚手架,非常不错,不管是从分包,分类,还是挺符合我的编码习惯的。star了

@liu-peiyu
Copy link
Owner

感谢Star,我正在修复其它的bug,你这个问题我关注,看如何实现

@zDream
Copy link
Author

zDream commented Feb 2, 2018

好的,最近在想spring boot 框架的设计,前后分离,交互怎么才更好,安全一些,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