Skip to content

Conversation

@subhankarmaiti
Copy link
Contributor

When the /userinfo endpoint returns a 401 status code (expired token), the SDK throws a NetworkError instead of a proper AuthError with the error details (like invalid_token).

Fixes #1375

@subhankarmaiti subhankarmaiti requested a review from a team as a code owner December 1, 2025 12:24
sanchitmehta94
sanchitmehta94 previously approved these changes Dec 1, 2025
Copy link

@sanchitmehta94 sanchitmehta94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@sanchitmehta94 sanchitmehta94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. LGTM

@subhankarmaiti subhankarmaiti merged commit 2bffefd into master Dec 2, 2025
5 checks passed
@subhankarmaiti subhankarmaiti deleted the fix/userinfo-401-response-parsing branch December 2, 2025 04:47
@subhankarmaiti subhankarmaiti mentioned this pull request Dec 2, 2025
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.

/userinfo response is broken with status 401

3 participants