A EmailPasswordStore that uses a KeyValueStorage to persist its information and an ExpiringStorage to persist ForgotPassword records.

forgotPasswordExpiration parameter is how long the ForgotPassword record should be stored in minutes. (defaults to 15 minutes)

Hierarchy

  • BaseAccountStore

Implements

Constructors

Properties

forgotPasswordExpiration: number
forgotPasswordStorage: ExpiringStorage<string, EmailPasswordData>
saltRounds: number

Methods

  • Verifies the account creation. This can be used with, for example, e-mail verification. The account can only be used after it is verified. In case verification is not required, this should be called immediately after the create call.

    Parameters

    • email: string

      The account email.

    Returns Promise<void>