src/Core/OAuth/OAuth2/OAuth2AccessToken.php
public function updateAccessToken($tokenExpiresTime, $refreshToken, $refreshTokenExpiresTime, $accessToken){
       $this->setAccessToken($accessToken);
       $this->setRefreshToken($refreshToken);
       $this->setAccessTokenValidationPeriodInSeconds($tokenExpiresTime);
       $this->setRefreshTokenValidationPeriodInSeconds($refreshTokenExpiresTime);
       $this->setAccessTokenExpiresAt(time() + $tokenExpiresTime);
       $this->setRefreshTokenExpiresAt(time() + $refreshTokenExpiresTime);
    }
public function updateAccessToken($tokenExpiresTime, $refreshToken, $refreshTokenExpiresTime, $accessToken){
       $this->setAccessToken($accessToken);
       $this->setRefreshToken($refreshToken);
       $this->setAccessTokenValidationPeriodInSeconds($tokenExpiresTime);
       $this->setRefreshTokenValidationPeriodInSeconds($refreshTokenExpiresTime);
       $this->setAccessTokenExpiresAt(time() + $tokenExpiresTime);
       $this->setRefreshTokenExpiresAt(time() + $refreshTokenExpiresTime);
    }
Update an access token after creating a new access token or making a refresh tokan API call
@param int      $tokenExpiresTime          The number of seconds that access token expired. Always 3600 seconds.
@param String   $refreshToken              The OAuth 2 Refresh Token returned from refresh token API call or generated from a new request.
@param int      $refreshTokenExpiresTime   The number of seconds that refresh token expired. Always 8726400 seconds.
@param String   $accessToken               The OAuth 2 Access Token returned from refresh token API call or generated from a new request.