UNPKG

supertokens-auth-react

Version:

ReactJS SDK that provides login functionality with SuperTokens.

34 lines (33 loc) 1.24 kB
import ThirdpartyWebJS from "supertokens-web-js/recipe/thirdparty"; import AuthRecipe from "../authRecipe"; import type { GetRedirectionURLContext, NormalisedConfig, PreAndPostAPIHookAction, OnHandleEventContext, UserInput, } from "./types"; import type { RecipeInitResult, NormalisedConfigWithAppInfoAndRecipeID, WebJSRecipeInterface } from "../../types"; export default class ThirdParty extends AuthRecipe< GetRedirectionURLContext, never, OnHandleEventContext, NormalisedConfig > { readonly webJSRecipe: WebJSRecipeInterface<typeof ThirdpartyWebJS>; static instance?: ThirdParty; static RECIPE_ID: string; recipeID: string; firstFactorIds: "thirdparty"[]; getFirstFactorsForAuthPage(): string[]; constructor( config: NormalisedConfigWithAppInfoAndRecipeID<NormalisedConfig>, webJSRecipe?: WebJSRecipeInterface<typeof ThirdpartyWebJS> ); getDefaultRedirectionURL: (context: GetRedirectionURLContext) => Promise<string>; static init( config?: UserInput ): RecipeInitResult<GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext, NormalisedConfig>; static getInstanceOrThrow(): ThirdParty; static reset(): void; }