diff --git a/src/Auth0.php b/src/Auth0.php index bdcb859..47cd425 100644 --- a/src/Auth0.php +++ b/src/Auth0.php @@ -76,7 +76,7 @@ public function getDefaultScopes() protected function checkResponse(ResponseInterface $response, $data) { if ($response->getStatusCode() >= 400) { - return Auth0IdentityProviderException::fromResponse( + throw Auth0IdentityProviderException::fromResponse( $response, $data['error'] ?: $response->getReasonPhrase() );