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失效补偿机制 #12

Closed
WalleV opened this issue Sep 15, 2021 · 2 comments
Closed

token失效补偿机制 #12

WalleV opened this issue Sep 15, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@WalleV
Copy link
Contributor

WalleV commented Sep 15, 2021

因为微信的access_token只允许一个,如果获取了新的token,上一个会在5分钟左右失效。但是目前sdk没有自动刷新机制,导致提前失效之后除非重启应用,否则不会重新刷新。

参考token失效的错误:

{
  "errcode": 40001,
  "errmsg": "invalid credential, access_token is invalid or not latest rid: 6141b79a-7c6e812d-5514c622",
  "resultcode": "",
  "resultmsg": ""
}
@WalleV WalleV added the enhancement New feature or request label Sep 15, 2021
@Matrix-X
Copy link
Contributor

在生成HttpResponse时,可以检查捕获token失效的错误

@Matrix-X
Copy link
Contributor

代码已提交合并到release/1.0.0

@Matrix-X Matrix-X closed this as completed Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants