Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FRUser

High-level API for logging a user in/out and getting profile information.

Hierarchy

  • FRUser

Index

Methods

Static login

  • Logs the user in with the specified step handler, acquires OAuth tokens, and retrieves user profile. Currently not implemented.

    Type parameters

    • T

      The type of user object expected

    Parameters

    • handler: FRStepHandler

      The function to invoke when handling authentication steps

    • Optional options: ConfigOptions

      Configuration overrides

    Returns Promise<FRStep | T>

Static loginWithUI

  • Logs the user in with the specified UI, acquires OAuth tokens, and retrieves user profile.

    Type parameters

    • T

      The type of user object expected

    Parameters

    • ui: FRUI

      The UI instance to use to acquire a session

    • Optional options: ConfigOptions

      Configuration overrides

    Returns Promise<T>

Static logout