import * as keytar from "keytar" ; import { Constants } from "./constants" ; /**
 * Credential store for user secret information, stored as name/value pair
 */ export class CredentialStore { param name static async get ( name ) { return keytar . getPassword ( Constants . EXTENSION_NAME , name ) ; } param name param value static async set ( name , value ) { await keytar . setPassword ( Constants . EXTENSION_NAME , name , value ) ; } param name static async delete ( name ) { return keytar . deletePassword ( Constants . EXTENSION_NAME , name ) ; } private constructor ( ) { } }