-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Sign In not possible from within electron #2478
Comments
We don't support popup/redirect sign-in operations in Electron. The error message also does not appear to come from our SDK. Are you using the Google sign in library? |
I´ve read this Medium article about using Firebase with Electron and it´s caveats. After that, I´ve resolved every issue that may appear (like getting Firebase to think its not being ran inside an node env) and created the issue repo mentioned above. |
It seems like this may be an issue with Google Sign-In and not Firebase. It seems from this issue, which is about using Google Sign-In in Electron, without Firebase, that it may have to do with Chrome or some back-end security requirements of Google Sign-In. https://support.google.com/accounts/thread/22873505?hl=en |
Apparently, for whatever reason, the issue is caused by the User Agent. Steps to reproduce:
Is there, by any chance, a way to change the User Agent before opening the popup dialog? |
I don't think the best solution is to have Firebase open up the capability to spoof a different user agent when opening a popup window, it doesn't seem like a good practice in general. Have you tried using Electron's |
Me neither. I can confirm that setting app.userAgentFallback to e.g. Hopefully this workaround won't be need for ever from now on. |
It sounds like this issue is resolved - a workaround is explained above, and we don't intend on supporting this directly at this time. |
It seems that user-agent bypass stopped working. |
useragentfallback isn't working anymore. Any update on that? |
Can you please go into a little bit more detail about what's broken with that workaround now? Is it a problem with Google Sign-In or Firebase Auth? What error are you getting? Again, we don't support popup/redirect sign-in operations in Electron, but I'll try to help if I can. |
The issue is that for some accounts, Google is blocking login page when that page was opened in Electron window. This only happens for some accounts and not all, which is really weird. Changing user agent of Electron worked for some credentials, but we are still getting errors that users are not able to log in :( |
the fun may be over :( |
Describe your environment
Describe the problem
I am not able to sign in with my Google account. After clicking the sign in button inside the popup the following message appears:
I´ve already resolved every electron security warning
Steps to reproduce:
I´ve prepared a repo to reproduce this issue. You can find it here
The text was updated successfully, but these errors were encountered: