question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unavailable unless you sign out of all other Google Accounts

See original GitHub issue

I’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: image webViewLink error

image 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JustinBeckwithcommented, Dec 9, 2019

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 🤔

0reactions
taygravecommented, Sep 7, 2022

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:

"Status: Won’t Fix (Intended Behavior) This behavior is intended and it is described on Fix issues with multiple Google Accounts:

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't sign in from a third-party service - Google Account Help
A general error that your sign-in was unsuccessful. · The service you're signing in from doesn't provide enough information to prove it's you....
Read more >
FINALLY a Fix for Issues Switching Between Google Accounts ...
Switching between various Google accounts can lead to annoying issues where new tabs or sites will open with the wrong account or the...
Read more >
Troubleshoot problems signing in to Windows
If you have multiple accounts on your device, try signing in with another account. On the lock screen, select another account from the...
Read more >
I am unable to add a Google account on my Android phone ...
This is actually a issue originating from the security settings in your device as adding new account need to enter phone password.
Read more >
8 Ways to Troubleshoot If Gmail Is Not Working Properly
It's possible the problem isn't with your computer or browser, but instead the Gmail service might be offline. To find out, you can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found