google / google-api-javascript-client

Google APIs Client Library for browser JavaScript, aka gapi.
Apache License 2.0
3.19k stars 1.05k forks source link

Calling grantOfflineAccess requires user to sign in again? #664

Open JoeVanGundy opened 4 years ago

JoeVanGundy commented 4 years ago

Can someone confirm if that's expected behaviour?

LavHinsu commented 4 years ago

Yes. ideally granting offline access allows an app//server to get access tokens infinitely. so you want user to know that they are granting offline access to their data. you cannot get the userObject and a authorization code in the same signIn session, they must signIn again.