Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SecretStorage

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

Hierarchy

  • SecretStorage

Index

Properties

Methods

Properties

Fires when a secret is stored or deleted.

Methods

  • get(key: string): Thenable<undefined | string>
  • 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 Thenable<undefined | string>

    The stored value or undefined.

  • store(key: string, value: string): Thenable<void>