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
API文档里,错误回调返回return callback(err),如果更改为return callback(null,null),就可以在accessToken不存在的情况下,调用getAccessToken方法。
The text was updated successfully, but these errors were encountered:
callback(null, JSON.parse(txt));
Sorry, something went wrong.
这个地方有问题吗? 没有token就需要刷新
的确如果按文档写: if (err) {return callback(err);} 就不会去调用 function (token, callback) {...} 所以永远都不会去缓存这个 token.
改为 if (err) {return callback(null,null);} 就可以,虽然还没读懂,谢谢 @shengbeiniao
No branches or pull requests
API文档里,错误回调返回return callback(err),如果更改为return callback(null,null),就可以在accessToken不存在的情况下,调用getAccessToken方法。
The text was updated successfully, but these errors were encountered: