Unavailable unless you sign out of all other Google Accounts
See original GitHub issueI’ve looked all over for a solution to this only to find other equally frustrated developers. Stackoverflow does not have any relevant answers, so I’m asking this here to verify if this is even doable.
Background: My app (authorized by Oauth2.0) fetches a user’s google drive files (this works fine) and I give the user a link to view / download the file, within my app.
Unfortunately on clicking the webViewLink, or webContentLink I get the errors below:
webViewLink error
webContentLink error
This seems to be happening because while opening the links, my browser assumes I’m opening them with my default (personal) account, when in fact my app has been authorized to use the secondary / work accounts.
I found a workaround online: which is to create a new “person” in chrome (with my secondary account) and open a new window with the new person to run my app. Everything works fine, but is a vastly inferior user experience.
Some stackoverflow answers suggested to modify the content links with an authuser=xx or a u/<secondary_email_id> before displaying to the user - unfortunately this does not work.
I’d appreciate any help from the good folks here.
Thanks in advance!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:11 (5 by maintainers)
Top GitHub Comments
Nothing from me. I’d be very surprised if this had anything to do with the npm module, which is generally what we’re going to be able to help with. Seems like some sort of buggy interaction between Chrome and the Google OAuth2 consent screen 🤔
for others arriving here w/ the same issue: here is another link to the google issue tracker https://issuetracker.google.com/issues/243636252
Looks like google determined it as:
And is going to ask you to tell your users to try opening the link in an incognito tab or logging out of their other accounts even though your app can’t tell when they are going to have the problem or not.