From d442985a150333a397b30f2439b7d8ab9b84ddf8 Mon Sep 17 00:00:00 2001 From: Roj Vroemen Date: Tue, 9 Nov 2021 11:57:24 +0100 Subject: [PATCH] Throw exception instead of returning it --- src/Auth0.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() );