Skip to content

Commit f032be6

Browse files
committed
h
1 parent 587e0a7 commit f032be6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Provider/Bitbucket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ protected function getDefaultScopes()
7878
*/
7979
protected function checkResponse(ResponseInterface $response, $data)
8080
{
81-
if (isset($data['type']) && $data['type'] === 'error') {
82-
throw new IdentityProviderException($data['message'], $data['status'], $response);
81+
if (isset($data['error'])) {
82+
throw new IdentityProviderException($data['error_description'], $response->getStatusCode(), $response);
8383
}
8484
}
8585

0 commit comments

Comments
 (0)