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

Fix: Refresh access_token if expired #24

Merged
merged 9 commits into from Nov 5, 2020

add early return

  • Loading branch information
fcjr committed Nov 5, 2020
commit e84525c1775ff40f8aba5984598f64398432f6fc
@@ -59,6 +59,9 @@ class TokenPool {
// as the token technically could have expired by the time the request
// arives
const accessToken = await AccessToken.get();
if (!accessToken) {
return;
}
response = await this._fetchNewTokens(accessToken, blindTokens);
}
if (response.ok) {
ProTip! Use n and p to navigate between commits in a pull request.