Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

  • S

  • R

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

Hierarchy

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

Index

Constructors

constructor

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

Properties

config

config: N

Methods

doesSessionExist

  • doesSessionExist(): Promise<boolean>

getAuthRecipeDefaultRedirectionURL

  • getAuthRecipeDefaultRedirectionURL(context: GetRedirectionURLContext): Promise<string>

getDefaultRedirectionURL

  • getDefaultRedirectionURL(_: T | { action: "SUCCESS"; isNewUser: boolean; redirectToPath?: string } | { action: "SIGN_IN_AND_UP" }): Promise<string>

Abstract getFeatureComponent

  • getFeatureComponent(componentName: string, props: any): Element

Abstract getFeatures

  • getFeatures(): Record<string, ComponentWithRecipeAndMatchingMethod>

getRedirectUrl

  • getRedirectUrl(context: T): Promise<string>

redirect

  • redirect(context: T, history?: any, queryParams?: Record<string, string>): Promise<void>

redirectToAuthWithRedirectToPath

  • redirectToAuthWithRedirectToPath(show?: "signin" | "signup", history?: any, queryParams?: any): Promise<void>

redirectToAuthWithoutRedirectToPath

  • redirectToAuthWithoutRedirectToPath(show?: "signin" | "signup", history?: any, queryParams?: any): Promise<void>

signOut

  • signOut(): Promise<void>

Generated using TypeDoc