Skip to content

Commit

Permalink
Twitter: Added Email to ArrayHydrator object
Browse files Browse the repository at this point in the history
Twitter Provider was missing the email key, as such even if the app has email permission it would report the email as null.
  • Loading branch information
arabcoders authored and ovr committed Mar 28, 2020
1 parent 6f18293 commit 8354cd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OAuth1/Provider/Twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function getIdentity(AccessTokenInterface $accessToken)
$hydrator = new ArrayHydrator([
'id' => 'id',
'name' => 'fullname',
'email' => 'email',
'screen_name' => 'username',
'profile_image_url_https' => 'pictureURL'
]);
Expand Down

0 comments on commit 8354cd4

Please sign in to comment.