I am creating a web app using Google Apps Script, and have run into kind of a wall.
Sometimes the users using the web app use it while being logged in with multiple Google accounts. There is a known error that shows up when a user attempts to access a Google web app while being logged in with multiple accounts: Can't log in to Google Apps Scripts
The known solutions are:
- Log out of all accounts and log in as just one.
- Use incognito mode, thus being logged in as just one user
- Use a separate browser for separate Google Accounts.
Unfortunately, none of these solutions are fitting for the current situation. I myself know how to deal with the error, but how do I programmatically inform the user of these solutions?
What I am trying to do is to intercept this error page, and put out my own error, that could instruct the user to log out of their other accounts. I am deploying the web app using Google Sites, but have not had any luck with it there.