Represents a storage utility for secrets, information that is sensitive.

Implements

Constructors

Properties

id: string
onDidChange: Event<SecretStorageChangeEvent> = ...

Fires when a secret is stored or deleted.

onDidChangeEmitter: Emitter<SecretStorageChangeEvent> = ...
secretState: InternalSecretsExt

Methods

  • Retrieve a secret that was stored with key. Returns undefined if there is no password matching that key.

    Parameters

    • key: string

      The key the secret was stored under.

    Returns Promise<undefined | string>

    The stored value or undefined.