Options
All
  • Public
  • Public/Protected
  • All
Menu

Class default<T, S, R, N> Abstract

Type parameters

  • T

  • S

  • R

  • N: NormalisedConfig<T | GetRedirectionURLContext, S, R | OnHandleEventContext>

Hierarchy

  • default<T | GetRedirectionURLContext, S, R | OnHandleEventContext, N>

Index

Constructors

  • new default<T, S, R, N>(config: N): default<T, S, R, N>

Properties

config: N

Methods

  • doesSessionExist(): Promise<boolean>
  • getAuthRecipeDefaultRedirectionURL(context: GetRedirectionURLContext): Promise<string>
  • getDefaultRedirectionURL(_: T | { action: "SUCCESS"; isNewUser: boolean; redirectToPath?: string } | { action: "SIGN_IN_AND_UP" }): Promise<string>
  • getFeatureComponent(componentName: string, props: any): Element
  • getFeatures(): Record<string, ComponentWithRecipeAndMatchingMethod>
  • getRedirectUrl(context: T): Promise<string>
  • redirect(context: T, history?: any, queryParams?: Record<string, string>): Promise<void>
  • redirectToAuthWithRedirectToPath(show?: "signin" | "signup", history?: any, queryParams?: any): Promise<void>
  • redirectToAuthWithoutRedirectToPath(show?: "signin" | "signup", history?: any, queryParams?: any): Promise<void>
  • signOut(): Promise<void>

Generated using TypeDoc