import OAuth2WebJS from "supertokens-web-js/recipe/oauth2provider"; import RecipeModule from "../recipeModule"; import type { GetRedirectionURLContext, NormalisedConfig, OnHandleEventContext, PreAndPostAPIHookAction, UserInput, } from "./types"; import type { RecipeInitResult, NormalisedConfigWithAppInfoAndRecipeID, WebJSRecipeInterface } from "../../types"; export default class OAuth2Provider extends RecipeModule< GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext, NormalisedConfig > { readonly webJSRecipe: WebJSRecipeInterface; static instance?: OAuth2Provider; static readonly RECIPE_ID = "oauth2provider"; readonly recipeID = "oauth2provider"; constructor( config: NormalisedConfigWithAppInfoAndRecipeID, webJSRecipe?: WebJSRecipeInterface ); static init( config?: UserInput ): RecipeInitResult; static getInstanceOrThrow(): OAuth2Provider; static getInstance(): OAuth2Provider | undefined; getDefaultRedirectionURL(ctx: GetRedirectionURLContext): Promise; static reset(): void; }