Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • default

Index

Constructors

Properties

SuperTokensWrapper: FC<PropsWithChildren<{ userContext?: UserContext }>> = SuperTokensWrapper
getTranslationFunction: (<T>(...stores: TranslationStore[]) => ((key: T, replacements?: Record<string, string>) => string)) = getTranslationFunction

Type declaration

    • <T>(...stores: TranslationStore[]): ((key: T, replacements?: Record<string, string>) => string)
    • Type Parameters

      • T extends string

      Parameters

      Returns ((key: T, replacements?: Record<string, string>) => string)

        • (key: T, replacements?: Record<string, string>): string
        • Parameters

          • key: T
          • Optional replacements: Record<string, string>

          Returns string

useTranslation: (() => TranslationFunc) = useTranslation

Type declaration

    • (): TranslationFunc
    • Returns TranslationFunc

useUserContext: (() => UserContext) = useUserContext

Type declaration

    • (): UserContext
    • Returns UserContext

Methods

  • changeLanguage(language: string): Promise<void>
  • isRecipeInitialized(recipeId: string): boolean
  • redirectToAuth(options?: { navigate?: Navigate; queryParams?: any; redirectBack?: boolean; show?: "signin" | "signup"; userContext?: UserContext }): Promise<void>
  • Parameters

    • Optional options: { navigate?: Navigate; queryParams?: any; redirectBack?: boolean; show?: "signin" | "signup"; userContext?: UserContext }
      • Optional navigate?: Navigate
      • Optional queryParams?: any
      • Optional redirectBack?: boolean
      • Optional show?: "signin" | "signup"
      • Optional userContext?: UserContext

    Returns Promise<void>

Generated using TypeDoc