Skip to content

Commit

Permalink
Add invalid_code Zoho error
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaconnier committed Dec 16, 2021
1 parent 256bbe8 commit dce52e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/zoho.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// with the error flashed in the session with the key `zoho.access_token_error`
// known error code:
// - 403: invalid_client_secret
// - 403: invalid_code
// - 500: fallback on unknown error
'on_error_url' => '/',

Expand Down
2 changes: 1 addition & 1 deletion src/Auth/ZohoAuthProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function checkResponse(ResponseInterface $response, $data): void
throw new IdentityProviderException(
sprintf('There was an error on response: %s', $data['error']),
match ($data['error']) {
'invalid_client_secret' => 403,
'invalid_client_secret', 'invalid_code' => 403,
default => 500
},
$data['error']
Expand Down

0 comments on commit dce52e6

Please sign in to comment.