Skip to content

Commit

Permalink
Merge pull request #57 from bookboon/hotfix/add-email-to-provider
Browse files Browse the repository at this point in the history
Add user email to ResourceOwner
  • Loading branch information
lkm authored May 14, 2020
2 parents 25e76c9 + 89c759d commit e5d14c4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Client/Oauth/BookboonResourceOwner.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ public function getName()
return $this->getValueByKey($this->response, 'user.name');
}

/**
* @return string|null
*/
public function getEmail() : ?string
{
return $this->getValueByKey($this->response, 'user.email');
}

/**
* @return array
*/
Expand Down

0 comments on commit e5d14c4

Please sign in to comment.