/**
* Updates an existing authorization with data from the resource owner
*
* @param Authorization $authorization Authorization
* @param UserResponseInterface $response Response of the resource owner
*
* @return Authorization
*/
protected function updateAuthorization(Authorization $authorization, UserResponseInterface $response)
{
$expirationDate = $this->getExpirationDate($response->getExpiresIn());
$authorization->setAuthorizationToken($response->getAccessToken())->setExpirationDate($expirationDate);
return $authorization;
}