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和删除,有什么好的解决方案吗 #35

Closed
bzsome opened this issue Aug 5, 2018 · 1 comment
Closed

不能注销token和删除,有什么好的解决方案吗 #35

bzsome opened this issue Aug 5, 2018 · 1 comment

Comments

@bzsome
Copy link

bzsome commented Aug 5, 2018

No description provided.

@Smith-Cruise
Copy link
Owner

额,你可以弄个缓存,把需要注销的token放在缓存里面,每次拿到token先和需要注销的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