ankurk91 / google-chat-electron

An unofficial desktop app for Google Chat :electron:
GNU General Public License v3.0
162 stars 49 forks source link

Fix : This browser or app may not be secure #68

Closed SudoVanilla closed 2 years ago

SudoVanilla commented 2 years ago

macOS (Working): image

Linux (Working): image

Windows 7 (Working): image

SudoVanilla commented 2 years ago

This should fix #52

ankurk91 commented 2 years ago

We are already overriding user agent https://github.com/ankurk91/google-chat-electron/blob/76318c710f4fb8bb17636877b03e83480306e291/src/main/features/userAgent.ts#L7

We are using Firefox user agent string here.

ankurk91 commented 2 years ago

I have merged your commits locally, but with Firefox user agent.

But the issue still not fixed for me, i am still getting same error upon login.

SudoVanilla commented 2 years ago

Uh, the user agent I used works for me. Confirmed on Windows 7, macOS, and Linux.

ankurk91 commented 2 years ago

Follow these steps:

Looks like google is also checking several other things not just User Agent. There is no easy way to spoof Google.

SudoVanilla commented 2 years ago

Ah I see the issue. I didn't full test.

reureya commented 2 years ago

I "resolved" the issue on my end though, I originally came to this thread from Hamsket:

Follow up: I weirdly got it to work now!

I first tried just reloading the tab and then restarting Hamsket a few times, which didn't help. Then I tried clearing the cache and restarting Hamsket, after which I entered the full email address (including @gmail.com, which I don't think I did before).

Not sure what precisely the magic step was, but probably the clearing the cache, restarting Hamsket, and entering the full address procedure taken together (possibly several times) is a tip worth trying.