From 1e4f4148c2b7917e4f1202b85af3151fb64a9776 Mon Sep 17 00:00:00 2001 From: Zach Leventer Date: Thu, 23 Apr 2026 21:26:08 -0400 Subject: [PATCH] Fix introspectAccessToken to return response.data instead of full axios response MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #36 — introspectAccessToken was returning the raw axios response object instead of unwrapping response.data like all other AuthClient methods (getTwoLeggedAccessToken, exchangeAuthCodeForAccessToken, exchangeRefreshTokenForAccessToken). Co-Authored-By: Claude Opus 4.6 (1M context) --- lib/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/auth.ts b/lib/auth.ts index 77de760..a72318e 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -201,7 +201,7 @@ export class AuthClient { /** A 2-legged, 3-legged or Enterprise access token. */ accessToken: string ): Promise { - return await axios.request({ + const response = await axios.request({ method: HTTP_METHODS.POST, url: `${OAUTH_BASE_URL}/introspectToken`, data: { @@ -213,5 +213,6 @@ export class AuthClient { [HEADERS.CONTENT_TYPE]: CONTENT_TYPE.URL_ENCODED } }); + return response.data; } }