I am creating a google application to get the user google account data. when i am using the oauth 2 in local with access_type = 'offline', it asks for offline access permission and i can get the refresh access token. But if i use the same code for my live server it didn't ask for offline permission and i can't get the refresh token as well. I am using oriceon oauth 5 package for my laravel application.I did like following
$googleService = OAuth::consumer('Google');
$googleService->setAccessType('offline');`
your Suggestion will helpful for me. Thank You