for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\Socialite\OAuth\Two;
use Arcanedev\Socialite\OAuth\AbstractUser;
/**
* Class User
*
* @package Arcanedev\Socialite\OAuth\Two
* @author ARCANEDEV <[email protected]>
*/
class User extends AbstractUser
{
/* ------------------------------------------------------------------------------------------------
| Properties
| ------------------------------------------------------------------------------------------------
* The refresh token that can be exchanged for a new access token.
* @var string
public $refreshToken;
* The number of seconds the access token is valid for.
* @var int
public $expiresIn;
| Getters & Setters
* Set the token on the user.
* @param string $token
* @return self
public function setToken($token)
$this->token = $token;
return $this;
}
* Set the refresh token required to obtain a new access token.
* @param string $refreshToken
public function setRefreshToken($refreshToken)
$this->refreshToken = $refreshToken;
* Set the number of seconds the access token is valid for as measured from when the access token was granted.
* @param int $expiresIn
public function setExpiresIn($expiresIn)
$this->expiresIn = $expiresIn;
* Set the raw user array from the provider.
* @param array $user
public function setRaw(array $user)
return parent::setRaw($user);