I was wondering if someone could point me in the right direction with this. I’ve almost got things working, but I have one quirk that tells me that I have something fundamentally wrong somewhere along the way.
In my Meteor web app that I have created, I’m using Google to sign in. The app fetches info from the user’s Google calendar too, and I’m using the Google APIs to do that. All that is working, but there seems to be a disconnect between permissions.
If I use a browser that has never been used previously to log into Google (e.g. using Chrome incognito or guest) then logging onto my app allows it to get calendar info.
If I use a browser that has previously logged into a Google account, that also works.
But if I log into my app with 1 Google ID, then log out, and log back in again with a different Google ID, the new user actually gets access to the 1st user’s calendar!
If, in my app I use the API to sign out gapi.auth2.getAuthInstance().signOut() it will prevent calendar access (it doesnt sign out of my app, but deauthenticates calendar access. But then when I log out of my app, and log back in again, I still have no calendar access.
In summary, logging into my app using a ‘fresh’ browser, grants my app calendar access, but only for the first user that logs into the app…?