The minimum interface required for credential storage. The user is left to decide what actual back end this uses, but it is assumed that it will be either window.sessionStorage or window.localStorage on the browser, and perhaps a cache or database on the server side.

Hierarchy

  • StorageApi

Methods

  • Get the item for the given key

    Parameters

    • key: string

    Returns null | string

  • Set the given value for the given key

    Parameters

    • key: string
    • val: string

    Returns void

  • Unset the value for the given key

    Parameters

    • key: string

    Returns void

Generated using TypeDoc