Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type Aliases

RecipeInterface: { getLoginMethods: any; getTenantId: any }

Type declaration

  • getLoginMethods:function
    • getLoginMethods(input: { options?: RecipeFunctionOptions; tenantId?: string; userContext: any }): Promise<{ fetchResponse: Response; firstFactors: string[]; status: "OK"; thirdParty: { providers: { id: string; name: string }[] } }>
    • Gets enabled login methods and their configuration

      throws

      STGeneralError if the API exposed by the backend SDKs returns status: "GENERAL_ERROR"

      Parameters

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

      Returns Promise<{ fetchResponse: Response; firstFactors: string[]; status: "OK"; thirdParty: { providers: { id: string; name: string }[] } }>

      {status: OK, emailpassword, passwordless, thirdParty} if successful

  • getTenantId:function
    • getTenantId(input: { userContext: any }): undefined | string | Promise<undefined | string>
UserInput: { override?: { functions?: any } } & RecipeModuleUserInput<any, PreAndPostAPIHookAction, any>

Variables

AllowedDomainsClaim: AllowedDomainsClaimClass
MultitenancyComponentsOverrideProvider: FC<PropsWithChildren<{ components: ComponentOverrideMap }>> = Wrapper.ComponentsOverrideProvider

Functions

  • init(config?: UserInput): RecipeInitResult<any, any, any, any>

Generated using TypeDoc