Store account per env.uriScheme

This commit is contained in:
Rachel Macfarlane
2020-01-17 14:31:55 -08:00
parent 697c7d5c43
commit 2eb1c837d7

View File

@@ -6,6 +6,7 @@
// keytar depends on a native module shipped in vscode, so this is
// how we load it
import * as keytarType from 'keytar';
import { env } from 'vscode';
function getKeytar(): Keytar | undefined {
try {
@@ -23,7 +24,7 @@ export type Keytar = {
deletePassword: typeof keytarType['deletePassword'];
};
const SERVICE_ID = 'vscode.login';
const SERVICE_ID = `${env.uriScheme}-vscode.login`;
const ACCOUNT_ID = 'account';
export class Keychain {