Monday, 28 June 2021

Google sign-in in an Electron.js application not working

I'm making a desktop app version of a website with electron. The desktop app itself works, but the google sign in does not work because "this browser is not secure."

Opening the sign-in page in a secure browser will not work here because i did not make the actual sign-in version itself, I am only making the desktop app version.

I've seen other posts where they say to change the userAgent, but Google has disabled that, so it will not work.

I also have used a solution with nativefier app --userAgent..., but the Windows and Linux versions become messy with a bunch of extra files after building. I would like to get a single .exe file for Windows and a single .AppImage or .deb file or similar for Linux if possible.

If you have any solutions or workarounds for this, please let me know. Thanks!



from Google sign-in in an Electron.js application not working

No comments:

Post a Comment