Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Constructors

Properties

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

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>
  • getAccountPayload(email: string, checkExistence: true): Promise<{ account: AccountPayload; key: string }>
  • getAccountPayload(email: string, checkExistence: false): Promise<{ account?: AccountPayload; key: string }>
  • getAccountResourceIdentifier(email: string): string
  • getForgotPasswordRecord(recordId: string): Promise<undefined | string>
  • getForgotPasswordRecordResourceIdentifier(recordId: string): string
  • verify(email: string): Promise<void>