Feedback on secrets API #112249

This commit is contained in:
Rachel Macfarlane
2021-01-20 09:24:13 -08:00
parent 64fa272029
commit 93ae815ba1
5 changed files with 8 additions and 8 deletions

View File

@@ -34,7 +34,7 @@ export class Keychain {
constructor(private context: vscode.ExtensionContext) { }
async setToken(token: string): Promise<void> {
try {
return await this.context.secrets.set(SERVICE_ID, token);
return await this.context.secrets.store(SERVICE_ID, token);
} catch (e) {
// Ignore
Logger.error(`Setting token failed: ${e}`);