UNPKG

supertokens-auth-react

Version:

ReactJS SDK that provides login functionality with SuperTokens.

30 lines (29 loc) 1.31 kB
import MultitenancyWebJS from "supertokens-web-js/recipe/multitenancy"; import { BaseRecipeModule } from "../recipeModule/baseRecipeModule"; import type { NormalisedConfig, UserInput, GetLoginMethodsResponseNormalized } from "./types"; import type { RecipeInitResult, NormalisedConfigWithAppInfoAndRecipeID, WebJSRecipeInterface, UserContext, } from "../../types"; export default class Multitenancy extends BaseRecipeModule<any, any, any, any> { readonly webJSRecipe: WebJSRecipeInterface<typeof MultitenancyWebJS>; static instance?: Multitenancy; static readonly RECIPE_ID = "multitenancy"; private dynamicLoginMethodsCache; readonly recipeID = "multitenancy"; constructor( config: NormalisedConfigWithAppInfoAndRecipeID<NormalisedConfig>, webJSRecipe?: WebJSRecipeInterface<typeof MultitenancyWebJS> ); getCurrentDynamicLoginMethods(input: { userContext: UserContext; }): Promise<GetLoginMethodsResponseNormalized | undefined>; static getDynamicLoginMethods( input: Parameters<typeof MultitenancyWebJS.getLoginMethods>[0] ): Promise<GetLoginMethodsResponseNormalized>; static init(config?: UserInput): RecipeInitResult<any, any, any, any>; static getInstanceOrThrow(): Multitenancy; static reset(): void; }