From 0057545e415255c74aaec42f1b3bbe02b623c3c6 Mon Sep 17 00:00:00 2001 From: JhaoDa Date: Wed, 22 Jun 2016 16:22:54 +0700 Subject: [PATCH] Bring back token, refreshToken and expiresIn properties to user object --- src/OAuth2/AbstractProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OAuth2/AbstractProvider.php b/src/OAuth2/AbstractProvider.php index 4728945..3056558 100644 --- a/src/OAuth2/AbstractProvider.php +++ b/src/OAuth2/AbstractProvider.php @@ -41,7 +41,7 @@ public function user() $this->credentialsResponseBody = $response; if ($user instanceof User) { - return $user->setAccessTokenResponseBody($this->credentialsResponseBody); + $user->setAccessTokenResponseBody($this->credentialsResponseBody); } return $user->setToken($token)