UNPKG

supertokens-web-js

Version:
16 lines (15 loc) 737 B
import { InputType, NormalisedInputType, PreAndPostAPIHookAction, RecipeInterface, UserInput } from "./types"; import { CreateRecipeFunction } from "../../types"; import AuthRecipe from "../authRecipe"; import { MultiFactorAuthClaimClass } from "./multiFactorAuthClaim"; export default class Recipe extends AuthRecipe<PreAndPostAPIHookAction, NormalisedInputType> { static instance?: Recipe; static RECIPE_ID: string; recipeImplementation: RecipeInterface; static MultiFactorAuthClaim: MultiFactorAuthClaimClass; constructor(config: InputType); static init(config?: UserInput): CreateRecipeFunction<PreAndPostAPIHookAction>; static getInstanceOrThrow(): Recipe; static reset(): void; } export { Recipe };