Google OAuth 2.0 Access Token's have an expiry time. I have integrated the Google Calendar API into my Ruby application however the problem is access token is expiring. How can I make the access token long lived one.
cal.login_with_refresh_token('ksdjkf_sdfkasdhfjhaskjdhfkasdhfkasjdlfasld')
{ "access_token" => "ksdjkf_sdfkasdhfjhaskjdhfkasdhfkasjdlfasld",
"token_type" => "Bearer",
"expires_in" => 2324
}
How to make this a long lived one which means untill unless he revokes access from his Google account user can be able to fetch his Calendar events.