Skip to content

Fix: return response.data from introspectAccessToken#40

Open
ZLeventer wants to merge 1 commit intolinkedin-developers:masterfrom
ZLeventer:fix/introspect-token-response
Open

Fix: return response.data from introspectAccessToken#40
ZLeventer wants to merge 1 commit intolinkedin-developers:masterfrom
ZLeventer:fix/introspect-token-response

Conversation

@ZLeventer
Copy link
Copy Markdown

Summary

Test plan

  • Call introspectAccessToken and verify the return value is an IntrospectTokenResponse object, not an Axios response wrapper
  • Verify the returned object contains active, client_id, scope, etc. directly (not nested under .data)

…os response

Fixes linkedin-developers#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) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: introspectAccessToken returns the full axios response instead of an IntrospectTokenResponse

1 participant