I copied the example given in Google Calendar API Quickstart and replaced it with the appropriate info. Every time I refresh the page, I'm asked to authorize before api data is fetched.
I'm using Chrome and I currently have multiple accounts / users. I noticed if I open an Incognito Window and sign in with one set of credentials then when I refresh the page I'm not asked to authorize.
Note, once I authenticate I receive calendar information so I don't believe it's an issue with client_id
, api_key
, scope
, etc.
Looking at the example code, I'm guessing the getAuthInstance()
is getting confused because of multiple accounts / users. Does anyone have any idea? Thanks!