Revert "Issue distinct sessions per extension, remove session when extension is removed from trusted list"

This reverts commit 85119afc7b.
This commit is contained in:
Rachel Macfarlane
2020-03-30 17:03:14 -07:00
parent 20f1853e5b
commit 852df3025d
8 changed files with 18 additions and 97 deletions

View File

@@ -4,7 +4,6 @@
*--------------------------------------------------------------------------------------------*/
import * as vscode from 'vscode';
import * as uuid from 'uuid';
import { keychain } from './common/keychain';
import { GitHubServer } from './githubServer';
import Logger from './common/logger';
@@ -123,7 +122,7 @@ export class GitHubAuthenticationProvider {
private async tokenToSession(token: string, scopes: string[]): Promise<vscode.AuthenticationSession> {
const userInfo = await this._githubServer.getUserInfo(token);
return {
id: uuid(),
id: userInfo.id,
getAccessToken: () => Promise.resolve(token),
accountName: userInfo.accountName,
scopes: scopes