问题 I have a single-page web application that uses Google Apps Script Execution API to call functions that return the data I need. I based my project on the quick start sample code provided by Google. This requires the use of OAuth and I am accomplishing that via functions that make use of the client JavaScript library provided by Google. The first time a user is asked to authenticate the following function is used with immediate: false : gapi.auth.authorize({client_id: CLIENT_ID, scope: SCOPES,