Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • AuthProvider

Index

Constructors

Properties

appConfig: AppConfigType
initialized: boolean = false

Methods

  • A method to get public key for other users

    Parameters

    Returns Promise<string | { x: string; y: string }>

    returns object or string based on output option provided

  • handleRedirect(): Promise<undefined | (() => Promise<void>)>
  • Returns Promise<undefined | (() => Promise<void>)>

  • init(): Promise<void>
  • isLoggedIn(): boolean
  • A helper method to determine whether user is logged in

    Returns boolean

  • deprecated

    A method to trigger passwordless login

    Parameters

    Returns Promise<void | { state: string; url: string } | (OtpLoginResponse & { state: string })>

    returns OAuth URL if autoRedirect is set to false, object if withUI is set to false

  • loginWithPasswordless(__namedParameters: { code: string; email: string }): Promise<void>
  • Parameters

    • __namedParameters: { code: string; email: string }
      • code: string
      • email: string

    Returns Promise<void>

  • loginWithPasswordlessStart(params: Partial<{ email: string; kind: "link" | "otp"; state: string }>): Promise<PasswordlessLoginResponse>
  • Parameters

    • params: Partial<{ email: string; kind: "link" | "otp"; state: string }>

    Returns Promise<PasswordlessLoginResponse>

  • loginWithPasswordlessV2Complete(__namedParameters: { email: string; otp: string }): Promise<void>
  • Parameters

    • __namedParameters: { email: string; otp: string }
      • email: string
      • otp: string

    Returns Promise<void>

  • loginWithPasswordlessV2Start(params: Partial<{ email: string; kind: "link" | "otp"; state: string }>): Promise<void | { state: string; url: string }>
  • Parameters

    • params: Partial<{ email: string; kind: "link" | "otp"; state: string }>

    Returns Promise<void | { state: string; url: string }>

  • logout(): void
  • A method to logout the user

    Returns void

  • fromGlobalRedirect(p: Partial<InitParams>): Promise<{ appId: string; provider: AuthProvider; state: string; cleanup?: any }>
  • handleRedirectPage(origin: string): void
  • helper function to handle redirect params on popup mode

    Parameters

    • origin: string

    Returns void

Generated using TypeDoc, the 2/12/2024 at 7:15:57 PM