Skip to content

Commit

Permalink
Add expires in to VK provider (#104)
Browse files Browse the repository at this point in the history
* Add expires in to VK provider

* User Arr::get
  • Loading branch information
spyric authored and faustbrian committed Sep 26, 2017
1 parent a321a59 commit cb95e1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ public function user()
$token = $this->getAccessTokenResponse($this->getCode())
));

return $user->setToken(Arr::get($token, 'access_token'));
return $user->setToken(Arr::get($token, 'access_token'))
->setExpiresIn(Arr::get($token, 'expires_in'));
}

/**
Expand Down

0 comments on commit cb95e1d

Please sign in to comment.