delete extra afterTokenLoad

This commit is contained in:
Tyler Leonhardt 2021-08-03 16:24:28 -07:00
parent c935e2292f
commit a8332b75e4
No known key found for this signature in database
GPG key ID: 1BC2B6244363E77E

View file

@ -142,7 +142,6 @@ export class GitHubAuthenticationProvider implements vscode.AuthenticationProvid
if (!session.account) {
try {
userInfo = await this._githubServer.getUserInfo(session.accessToken);
setTimeout(() => this.afterTokenLoad(session.accessToken), 1000);
Logger.info(`Verified session with the following scopes: ${session.scopes}`);
} catch (e) {
// Remove sessions that return unauthorized response