Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SdLogin

Index

Constructors

constructor

Properties

api

eventAggregator

eventAggregator: EventAggregator

inited

inited: boolean = false

Private log

log: Logger = ...

Private mediumRegex

mediumRegex: RegExp = ...

passwordStrengthRequired

passwordStrengthRequired: "strong" | "medium" | "weak" = 'medium'

processing

processing: boolean = false

readySub

readySub: Function[] = ...

state

state: AppState

store

store: Store<unknown>

Private strongRegex

strongRegex: RegExp = ...

Private weakRegex

weakRegex: RegExp = ...

Methods

Private authenticate

  • authenticate(username: string, password: string): Promise<string | false>

checkIfUsernameExists

  • checkIfUsernameExists(username: string): Promise<false | "email" | "mobile">

createAccount

  • createAccount(firstname: string, lastname: string, email: string, mobile: string, password: string, ensureEmail: boolean, ensureMobile: boolean, extraData?: any): Promise<any>
  • Parameters

    • firstname: string
    • lastname: string
    • email: string
    • mobile: string
    • password: string
    • ensureEmail: boolean
    • ensureMobile: boolean
    • Optional extraData: any

    Returns Promise<any>

doubleAuth

  • doubleAuth(code: any): void

init

login

  • login(username: string, password: string): Promise<any>

logout

  • logout(): Promise<void>

passwordRegex

  • passwordRegex(): RegExp

processValidationResponse

  • processValidationResponse(response: any): true

ready

  • ready(): Promise<void>

registerActions

  • registerActions(): void

requestResetPassword

  • requestResetPassword(input: string): Promise<any>

resendCode

  • resendCode(method: "email" | "mobile"): Promise<any>

resetPassword

  • resetPassword(code: string, password: string): Promise<any>

validateCode

  • validateCode(code: string, type: "email" | "mobile"): Promise<UserModel>

Generated using TypeDoc