Options
All
  • Public
  • Public/Protected
  • All
Menu

Module recipe/multifactorauth

Index

Type Aliases

GetRedirectionURLContext: { action: "FACTOR_CHOOSER"; nextFactorOptions?: string[] } | { action: "GO_TO_FACTOR"; factorId: string; forceSetup?: boolean }
OnHandleEventContext: { action: "FACTOR_CHOOSEN"; factorId: string }

Type declaration

  • action: "FACTOR_CHOOSEN"
  • factorId: string
PreAPIHookContext: { action: PreAndPostAPIHookAction; requestInit: RequestInit; url: string; userContext: UserContext }

Type declaration

  • action: PreAndPostAPIHookAction
  • requestInit: RequestInit
  • url: string
  • userContext: UserContext
RecipeInterface: { resyncSessionAndFetchMFAInfo: any }

Type declaration

  • resyncSessionAndFetchMFAInfo:function
    • resyncSessionAndFetchMFAInfo(input: { options?: RecipeFunctionOptions; userContext: any }): Promise<{ emails: Record<string, string[] | undefined>; factors: MFAFactorInfo; fetchResponse: Response; phoneNumbers: Record<string, string[] | undefined>; status: "OK" }>
    • Parameters

      • input: { options?: RecipeFunctionOptions; userContext: any }
        • Optional options?: RecipeFunctionOptions
        • userContext: any

      Returns Promise<{ emails: Record<string, string[] | undefined>; factors: MFAFactorInfo; fetchResponse: Response; phoneNumbers: Record<string, string[] | undefined>; status: "OK" }>

UserInput: { disableDefaultUI?: boolean; factorChooserScreen?: FeatureBaseConfig; firstFactors?: string[]; override?: { functions?: any }; getSecondaryFactorInfo?: any } & RecipeModuleUserInput<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext>

Variables

FactorIds: { EMAILPASSWORD: string; LINK_EMAIL: string; LINK_PHONE: string; OTP_EMAIL: string; OTP_PHONE: string; THIRDPARTY: string; TOTP: string } = ...

Type declaration

  • EMAILPASSWORD: string
  • LINK_EMAIL: string
  • LINK_PHONE: string
  • OTP_EMAIL: string
  • OTP_PHONE: string
  • THIRDPARTY: string
  • TOTP: string
MultiFactorAuthClaim: MultiFactorAuthClaimClass = MultiFactorAuthRecipe.MultiFactorAuthClaim
MultiFactorAuthComponentsOverrideProvider: FC<PropsWithChildren<{ components: ComponentOverrideMap }>> = Wrapper.ComponentsOverrideProvider

Functions

  • redirectToFactor(factorId: string, forceSetup?: boolean, redirectBack?: boolean, navigate?: Navigate, userContext?: UserContext): Promise<void>
  • Parameters

    • factorId: string
    • forceSetup: boolean = false
    • redirectBack: boolean = true
    • Optional navigate: Navigate
    • Optional userContext: UserContext

    Returns Promise<void>

  • redirectToFactorChooser(redirectBack?: boolean, nextFactorOptions?: string[], navigate?: Navigate, userContext?: UserContext): Promise<void>
  • resyncSessionAndFetchMFAInfo(input?: { options?: RecipeFunctionOptions; userContext?: UserContext }): Promise<{ emails: Record<string, undefined | string[]>; factors: MFAFactorInfo; fetchResponse: Response; phoneNumbers: Record<string, undefined | string[]>; status: "OK" }>
  • Parameters

    • Optional input: { options?: RecipeFunctionOptions; userContext?: UserContext }
      • Optional options?: RecipeFunctionOptions
      • Optional userContext?: UserContext

    Returns Promise<{ emails: Record<string, undefined | string[]>; factors: MFAFactorInfo; fetchResponse: Response; phoneNumbers: Record<string, undefined | string[]>; status: "OK" }>

Generated using TypeDoc