Skip to main content
References

MultiTenancy Types

Type Aliases

InputType

type InputType = AuthRecipeInputType<PreAndPostAPIHookAction> & UserInput;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/multitenancy/types.ts:41

NormalisedInputType

type NormalisedInputType = AuthRecipeNormalisedInputType<PreAndPostAPIHookAction> & object;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/multitenancy/types.ts:43

Type Declaration

PostAPIHookContext

type PostAPIHookContext = RecipePostAPIHookContext<PreAndPostAPIHookAction>;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/multitenancy/types.ts:30

PreAndPostAPIHookAction

type PreAndPostAPIHookAction = "GET_LOGIN_METHODS";

Defined in: tmp/supertokens-web-js/lib/ts/recipe/multitenancy/types.ts:27

PreAPIHookContext

type PreAPIHookContext = RecipePreAPIHookContext<PreAndPostAPIHookAction>;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/multitenancy/types.ts:29

RecipeInterface

type RecipeInterface = object;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/multitenancy/types.ts:52

Properties

PropertyTypeDescriptionDefined in
getLoginMethods(input) => Promise<{ fetchResponse: Response; firstFactors: string[]; status: "OK"; thirdParty: { providers: object[]; }; }>Gets enabled login methods and their configuration Throws STGeneralError if the API exposed by the backend SDKs returns status: "GENERAL_ERROR"tmp/supertokens-web-js/lib/ts/recipe/multitenancy/types.ts:68
getTenantId(input) => Promise<string | undefined> | string | undefined-tmp/supertokens-web-js/lib/ts/recipe/multitenancy/types.ts:53

UserInput

type UserInput = object & RecipeModuleUserInput<PreAndPostAPIHookAction>;

Defined in: tmp/supertokens-web-js/lib/ts/recipe/multitenancy/types.ts:32

Type Declaration