UNPKG

@dotinc/bouncer-admin

Version:
39 lines (31 loc) 1.93 kB
import { TypeInput, SuperTokensInfo, AppInfo } from 'supertokens-node/types'; import * as supertokens_auth_react_lib_build_types from 'supertokens-auth-react/lib/build/types'; import * as supertokens_auth_react_lib_build_recipe_passwordless_types from 'supertokens-auth-react/lib/build/recipe/passwordless/types'; import * as supertokens_auth_react_lib_build_recipe_authRecipe_types from 'supertokens-auth-react/lib/build/recipe/authRecipe/types'; import { AppInfo as AppInfo$1 } from '../lib/build/types'; import PasswordlessReact from 'supertokens-auth-react/recipe/passwordless'; import * as React from 'react'; declare type BackendConfigProps = { supertokens?: SuperTokensInfo; appInfo?: AppInfo; }; declare const backendConfig: (config?: BackendConfigProps) => TypeInput; declare type FrontendConfigProps = { appInfo?: AppInfo$1; }; declare const frontendConfig: (config?: FrontendConfigProps) => { appInfo: { appName: string; websiteDomain: string; websiteBasePath: string; apiDomain: string; apiBasePath: string; apiGatewayPath?: string | undefined; }; recipeList: (supertokens_auth_react_lib_build_types.CreateRecipeFunction<supertokens_auth_react_lib_build_recipe_authRecipe_types.GetRedirectionURLContext, supertokens_auth_react_lib_build_recipe_passwordless_types.PreAndPostAPIHookAction, PasswordlessReact.OnHandleEventContext, supertokens_auth_react_lib_build_recipe_passwordless_types.NormalisedConfig> | supertokens_auth_react_lib_build_types.CreateRecipeFunction<unknown, unknown, unknown, any>)[]; }; declare const initFrontend: (config?: FrontendConfigProps) => void; declare const AuthPage: () => JSX.Element; declare const AuthProvider: React.FC<React.PropsWithChildren>; declare const AppProvider: React.FC<React.PropsWithChildren>; export { AppProvider, AuthPage, AuthProvider, backendConfig, frontendConfig, initFrontend };