protected updateAuthorization ( |
||
$authorization | Authorization | |
$response | HWI\Bundle\OAuthBundle\OAuth\Response\UserResponseInterface | Response of the resource owner |
return |
protected function updateAuthorization(Authorization $authorization, UserResponseInterface $response)
{
$expirationDate = $this->getExpirationDate($response->getExpiresIn());
$authorization->setAuthorizationToken($response->getAccessToken())->setExpirationDate($expirationDate);
return $authorization;
}