We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe9b8ed commit 9b96dfdCopy full SHA for 9b96dfd
src/Two/TwitterProvider.php
@@ -68,4 +68,18 @@ protected function mapUserToObject(array $user)
68
'avatar' => $user['profile_image_url'],
69
]);
70
}
71
+
72
+ /**
73
+ * {@inheritdoc}
74
+ */
75
+ public function getAccessTokenResponse($code)
76
+ {
77
+ $response = $this->getHttpClient()->post($this->getTokenUrl(), [
78
+ 'headers' => ['Accept' => 'application/json'],
79
+ 'auth' => [$this->clientId, $this->clientSecret],
80
+ 'form_params' => $this->getTokenFields($code),
81
+ ]);
82
83
+ return json_decode($response->getBody(), true);
84
+ }
85
0 commit comments