googleworkspace / apps-script-oauth2

An OAuth2 library for Google Apps Script.
https://developers.google.com/apps-script/
Apache License 2.0
1.56k stars 429 forks source link

"This action is not available if you are connected to multiple accounts in the same domain or to multiple personal accounts. Please log out and try again." #277

Closed DeplanqueMathis closed 3 years ago

DeplanqueMathis commented 3 years ago

Hello,

Your library is verry powerfull and helpfull but I want to use OAuth2 to connect on an external Website and give the access to my gmail addon, it work perfectly when I'm using my addon with only one gmail account log on mail.google.com or if I use my default google account but if I use an other account it show me the error I wrote in the title. Any solution for my problem ? I can't use the solution of "privaty" or "anonymous" window, it's not covenient or professional :/

Thanks a lot for your answer !

erickoledadevrel commented 3 years ago

I haven't come across this error before, but it looks like it's coming from Apps Script itself and not this library. I do know that support for multilogin isn't great in Apps Script, but I don't know of anything you can do to work around it.