Implements the RESTful authentication flow for Microsoft Graph API. Extends AuthFlowBase class.

Hierarchy

Constructors

  • Creates an instance of AuthFlowREST.

    Parameters

    • options: {
          clientId?: string;
          clientSecret?: string;
          redirectUri?: string;
      } = {}

      Configuration options for the authentication flow.

      • Optional clientId?: string

        The client ID for authentication.

      • Optional clientSecret?: string

        The client secret for authentication.

      • Optional redirectUri?: string

        The redirect URI for authentication.

    Returns AuthFlowREST

Properties

accessToken: string = ""

The access token obtained through authentication.

Memberof

AuthFlowBase

clientId: string

The client ID used for authentication.

Memberof

AuthFlowBase

Methods

  • Login to get the access and refresh token by user login.

    Returns Promise<{
        accessToken: string;
        refreshToken: string;
    }>

    A Promise resolving to the access and refresh tokens.

Generated using TypeDoc