We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
client.getAccessToken('code', function (err, result) { var accessToken = result.data.access_token; var openid = result.data.openid; });
微信内置浏览器页面刷新,code已经使用过,result不包括data属性 示例:
{"errcode":40163,"errmsg":"code been used, hints: [ req_id: KNJZqa0152th52 ]"}
The text was updated successfully, but these errors were encountered:
自己要做 code 的缓存。
Sorry, something went wrong.
应该是需要重新获取新的code吧
不需要。服务端判断当前 code 是否是之前一段时间内使用过,如果是,从缓存读取数据。
简单点来说就是 code 用过之后要把数据保存在 session 中。第二次进入就直接用 session 中的数据。
No branches or pull requests
微信内置浏览器页面刷新,code已经使用过,result不包括data属性
示例:
The text was updated successfully, but these errors were encountered: