An object to interact with the Laserfiche Cloud OAuth 2.0 token endpoint.

Implements

Constructors

Methods

  • Gets an OAuth access token given an OAuth code

    Parameters

    • code: string

      Authorization code

    • redirect_uri: string

      Authorization endpoint redirect uri

    • client_id: string

      OAuth application client id

    • Optionalclient_secret: string

      OPTIONAL OAuth application client secret. Required for web apps.

    • Optionalcode_verifier: string

      OPTIONAL PKCE code verifier. Required for SPA apps.

    • Optionalscope: string

      OPTIONAL The requested space-delimited scopes for the access token.

    Returns Promise<LfApiClientCore.GetAccessTokenResponse>

  • Gets a refreshed access token given a refresh token

    Parameters

    • refresh_token: string

      Refresh token

    • client_id: string

      OAuth application client id

    • Optionalclient_secret: string

      OPTIONAL OAuth application client secret. Required for web apps.

    Returns Promise<LfApiClientCore.GetAccessTokenResponse>