Class BaseForgotPasswordStore

A ForgotPasswordStore using an ExpiringStorage to hold the necessary records.

Hierarchy

  • BaseForgotPasswordStore

Implements

Constructors

Properties

Methods

Constructors

Properties

storage: ExpiringStorage<string, string>
ttl: number

Methods

  • Creates a Forgot Password Confirmation Record. This will be to remember that a user has made a request to reset a password. Throws an error if the email doesn't exist.

    Parameters

    • email: string

      ID of the email/password login object.

    Returns Promise<string>

    The record id. This should be included in the reset password link.