Constructors

Methods

  • Returns Promise<null | IMXProvider>

    The method login with an argument of { useCachedSession: true } should be used in conjunction with connectImx instead.

  • Returns Promise<IMXProvider>

  • Parameters

    • Optionaloptions: {
          announceProvider: boolean;
      }
      • announceProvider: boolean

    Returns Provider

  • Initiates the authorisation flow.

    Parameters

    • Optionaloptions: {
          useCachedSession?: boolean;
          anonymousId?: string;
          useSilentLogin?: boolean;
      }
      • OptionaluseCachedSession?: boolean

        = false - If true, and no active session exists, then the user will not be prompted to log in and the Promise will resolve with a null value.

      • OptionalanonymousId?: string

        If provided, Passport internal metrics will be enriched with this value.

      • OptionaluseSilentLogin?: boolean

        If true, and no active session exists, then the user will not be prompted to log in. Instead, we will attempt to authenticate the user silently. This approach will fail if the user does not have an active session with the authentication server, or if user input is required (for example, consent is required).

    Returns Promise<null | UserProfile>

    the user profile if the user is logged in, otherwise null

  • Returns Promise<void>

  • Parameters

    • Optionaloptions: {
          anonymousId?: string;
      }
      • OptionalanonymousId?: string

    Returns Promise<DeviceConnectResponse>

  • Parameters

    • deviceCode: string
    • interval: number
    • OptionaltimeoutMs: number

    Returns Promise<UserProfile>

  • Returns string

  • Parameters

    • authorizationCode: string
    • state: string

    Returns Promise<UserProfile>

  • Returns Promise<void>

  • Logs the user out of Passport when using device flow authentication.

    Returns Promise<string>

    The device flow end session endpoint. Consumers are responsible for opening this URL in the same browser that was used to log the user in.

  • This method should only be called from the logout redirect uri when logout mode is 'silent'.

    Parameters

    • url: string

    Returns Promise<void>

  • Returns Promise<undefined | UserProfile>

  • Returns Promise<undefined | string>

  • Returns Promise<undefined | string>

  • Returns Promise<string[]>