UNPKG

supertokens-auth-react

Version:

ReactJS SDK that provides login functionality with SuperTokens.

22 lines (21 loc) 1.21 kB
import type { TranslationStore } from "../../translation/translationHelpers"; import type { AuthComponent, RecipeFeatureComponentMap } from "../../types"; import type { BaseFeatureComponentMap, ComponentWithRecipeAndMatchingMethod } from "../../types"; import type { GetLoginMethodsResponseNormalized } from "../multitenancy/types"; import type RecipeModule from "../recipeModule"; import type NormalisedURLPath from "supertokens-web-js/lib/build/normalisedURLPath"; export declare abstract class RecipeRouter { private pathsToFeatureComponentWithRecipeIdMap?; abstract recipeInstance: RecipeModule<never, any, any, any>; abstract languageTranslations: TranslationStore; static getMatchingComponentForRouteAndRecipeIdFromPreBuiltUIList( normalisedUrl: NormalisedURLPath, preBuiltUIList: RecipeRouter[], defaultToStaticList: boolean, dynamicLoginMethods?: GetLoginMethodsResponseNormalized ): ComponentWithRecipeAndMatchingMethod | undefined; getPathsToFeatureComponentWithRecipeIdMap: () => BaseFeatureComponentMap; abstract getFeatures(): RecipeFeatureComponentMap; abstract getAuthComponents(): AuthComponent[]; requiresSignUpPage: boolean; }