Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • default

Index

Constructors

Properties

AllowedDomainsClaim: AllowedDomainsClaimClass = AllowedDomainsClaim

Methods

  • 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 from the backend

    throws

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

    Parameters

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

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

  • getTenantId(input?: { userContext?: any }): undefined | string | Promise<undefined | string>
  • Gets enabled login methods and their configuration from the backend

    Parameters

    • Optional input: { userContext?: any }
      • Optional userContext?: any

    Returns undefined | string | Promise<undefined | string>

    Promise<string | undefined> | string | undefined

  • init(config?: UserInput): CreateRecipeFunction<"GET_LOGIN_METHODS">

Generated using TypeDoc