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

Refresh v2 #38

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

fix race condition

  • Loading branch information
fcjr committed Dec 16, 2020
commit 5fe1909b018f151ba7980ca976e6e533d42a8865
@@ -13,11 +13,12 @@ class AccessToken {
}

static async get() {
if (AccessToken.TOKEN) {
return AccessToken.TOKEN
const token = AccessToken.TOKEN;
if (token) {
return token;
}
await AccessToken.refresh();
return AccessToken.TOKEN
return AccessToken.TOKEN;
}

static parse() {
ProTip! Use n and p to navigate between commits in a pull request.