Options
All
  • Public
  • Public/Protected
  • All
Menu

A EmailPasswordStore that uses a KeyValueStorage to persist its information.

Hierarchy

  • BaseAccountStore

Implements

Index

Constructors

constructor

Properties

Private Readonly saltRounds

saltRounds: number

Private Readonly storage

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>

Private getAccountPayload

  • getAccountPayload(email: string, checkExistence: true): Promise<{ account: AccountPayload; key: string }>
  • getAccountPayload(email: string, checkExistence: false): Promise<{ account?: AccountPayload; key: string }>

Private getAccountResourceIdentifier

  • getAccountResourceIdentifier(email: string): string

getForgotPasswordRecord

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

Private getForgotPasswordRecordResourceIdentifier

  • getForgotPasswordRecordResourceIdentifier(recordId: string): string

getSettings

updateSettings

verify

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