Skip to content
Permalink
Browse files

opt: set credentialsResponseBody before getUserByToken. close #141

  • Loading branch information...
sinkcup authored and m1guelpf committed Apr 21, 2019
1 parent 9c04448 commit 1416f70734729130b254cea8e01f2c2e1ab5c6bc
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/OAuth2/AbstractProvider.php
@@ -38,13 +38,12 @@ public function user()
}
$response = $this->getAccessTokenResponse($this->getCode());
$this->credentialsResponseBody = $response;
$user = $this->mapUserToObject($this->getUserByToken(
$token = $this->parseAccessToken($response)
));
$this->credentialsResponseBody = $response;
if ($user instanceof User) {
$user->setAccessTokenResponseBody($this->credentialsResponseBody);
}

0 comments on commit 1416f70

Please sign in to comment.
You can’t perform that action at this time.