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

退出怎么处理token #52

Closed
JavaerLQ opened this issue Mar 4, 2021 · 1 comment
Closed

退出怎么处理token #52

JavaerLQ opened this issue Mar 4, 2021 · 1 comment

Comments

@JavaerLQ
Copy link

JavaerLQ commented Mar 4, 2021

用户发送logout请求后,token客户端还生效着呢,如何让该token处于失效状态呢?

@Exrick
Copy link
Owner

Exrick commented Mar 5, 2021

默认使用Redis模式可通过删除相应key键值实现
如果使用JWT则无法收回令牌,算是JWT的小缺点【可尝试增加记录JWT标记失效状态下次验证时校验】

@Exrick Exrick closed this as completed Jul 2, 2021
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