Skip to content

fix: Raise Error on non-2xx responses#4

Merged
rhatherall merged 1 commit intodevelopfrom
bugfix/raise-exceptions-on-errors
Mar 3, 2026
Merged

fix: Raise Error on non-2xx responses#4
rhatherall merged 1 commit intodevelopfrom
bugfix/raise-exceptions-on-errors

Conversation

@rhatherall
Copy link
Copy Markdown
Member

@rhatherall rhatherall commented Mar 3, 2026

Replace silent nil returns in Client#get_token and Client#get_user_info
with CognitoIdp::Error exceptions that expose error, error_description,
and http_status from Cognito's structured error body.

BREAKING CHANGE: Methods now raise CognitoIdp::Error instead of
returning nil on error responses.

@rhatherall rhatherall self-assigned this Mar 3, 2026
Replace silent nil returns in Client#get_token and Client#get_user_info
with CognitoIdp::Error exceptions that expose error, error_description,
and http_status from Cognito's structured error body.

BREAKING CHANGE: Methods now raise CognitoIdp::Error instead of
returning nil on error responses.
@rhatherall rhatherall force-pushed the bugfix/raise-exceptions-on-errors branch from 11919b7 to 47b304d Compare March 3, 2026 20:59
@rhatherall rhatherall merged commit 1c18d1e into develop Mar 3, 2026
6 checks passed
@rhatherall rhatherall deleted the bugfix/raise-exceptions-on-errors branch March 3, 2026 21:00
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.

1 participant