Options
All
  • Public
  • Public/Protected
  • All
Menu

Storage needed for the email-password interaction

Hierarchy

  • AccountStore

Implemented by

Index

Methods

authenticate

  • authenticate(email: string, password: string): Promise<string>

changePassword

  • changePassword(email: string, password: string): Promise<void>

create

  • create(email: string, webId: string, password: string, settings: AccountSettings): Promise<void>

deleteAccount

  • deleteAccount(email: string): Promise<void>

deleteForgotPasswordRecord

  • deleteForgotPasswordRecord(recordId: string): Promise<void>

generateForgotPasswordRecord

  • 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

  • getForgotPasswordRecord(recordId: string): Promise<undefined | string>

getSettings

updateSettings

verify

  • 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>