Interface AccountStore

Used to store account data.

Hierarchy

  • AccountStore

Implemented by

Properties

Methods

Properties

create: (() => Promise<string>)

Type declaration

    • (): Promise<string>
    • Creates a new and empty account. Since this account will not yet have a login method, implementations should restrict what is possible with this account, and should potentially have something in place to clean these accounts up if they are unused.

      Returns Promise<string>

Methods

  • Updates the settings for the account with the given identifier to the new values.

    Type Parameters

    • T extends "rememberLogin"

    Parameters

    • id: string

      The account identifier.

    • setting: T

      The setting to update.

    • value: AccountSettings[T]

      The new value for the setting.

    Returns Promise<void>