Skip to content

security/oauth

Documentation

Overview

Classes

OAuthClient

getToken()

Executes the OAuth token request and returns the parsed response.

The request uses the client credentials grant type (default) and sends credentials as URL-encoded parameters in the body.

ts
getToken(): any;

Returns

  • Type: any
  • Description: A parsed JSON object containing the OAuth token (e.g., { access_token: string, expires_in: number, ... }).