spoonwep / oauth2-weibo

Weibo OAuth 2.0 support for the PHP League's OAuth 2.0 Client
MIT License
2 stars 2 forks source link

other issue #2

Open jiangdl opened 7 years ago

jiangdl commented 7 years ago

The function checkResponse In class Weibo protected function checkResponse (ResponseInterface $response, $data) { if (isset($data['error'])) { throw new IdentityProviderException($data['error_description'], $response->getStatusCode(), $response); } }

$data['error_description'] change to $data['error']

tired!!!