Skip to content

Commit

Permalink
fix: expand successful status range to include 300-399 status code to…
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmednfwela committed Jun 8, 2024
1 parent 9abaecc commit 717d533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/oidc_core/lib/src/endpoints/facade.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class OidcEndpoints {
rawResponse: response,
);
}
if (!(response.statusCode >= 200 && response.statusCode < 300)) {
if (!(response.statusCode >= 200 && response.statusCode < 400)) {
throw OidcException(
'Failed to handle the response from endpoint (status code ${response.statusCode}): ${request.url}',
rawRequest: request,
Expand Down

0 comments on commit 717d533

Please sign in to comment.