Options
All
  • Public
  • Public/Protected
  • All
Menu

Storage needed for the email-password interaction

Hierarchy

  • AccountStore

Implemented by

Index

Methods

  • authenticate(email: string, password: string): Promise<string>
  • changePassword(email: string, password: string): Promise<void>
  • create(email: string, webId: string, password: string, settings: AccountSettings): Promise<void>
  • deleteAccount(email: string): Promise<void>
  • deleteForgotPasswordRecord(recordId: string): Promise<void>
  • generateForgotPasswordRecord(email: string): Promise<string>
  • 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

      The user's email.

    Returns Promise<string>

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

  • getForgotPasswordRecord(recordId: string): Promise<undefined | string>
  • verify(email: string): Promise<void>
  • 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>