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失效下,自动刷新的并发问题 #228

Open
qidianli opened this issue Jun 24, 2020 · 1 comment
Open

token失效下,自动刷新的并发问题 #228

qidianli opened this issue Jun 24, 2020 · 1 comment

Comments

@qidianli
Copy link

我看源码中token失效后的处理,如果多个接口同事请求并失效,会导致客户端刷新token多次,产生客户端刚请求成功的token,再次重新请求接口的时候会失效

@Colaman0
Copy link

获取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