react-google-login icon indicating copy to clipboard operation
react-google-login copied to clipboard

not get response on safari

Open Maor44 opened this issue 4 years ago • 5 comments

when I'm login the flow is working and when I'm back on my website page - nothing happened. happened on safari on mac and also in ios.

Maor44 avatar Sep 01 '20 14:09 Maor44

I have the same issue on with Chrome on macOS

sudoerwx avatar Oct 28 '20 15:10 sudoerwx

I don't get a response on Firefox 82.0.2 using Xubuntu 20.04, but I can get responses using Chromium 86.4240.183 on the same OS.

josephgale avatar Nov 09 '20 22:11 josephgale

I have the same problem.

Takesizmail avatar Nov 11 '20 12:11 Takesizmail

The same problem, is there any news about this issue?

thiagoramireskairala avatar Nov 16 '20 16:11 thiagoramireskairala

I've been having the same issue; only when I use the uxMode: "redirect". It turns out it's because of Safari's Prevent cross-site tracking Privacy feature! I switched it off, and the authentication started working. I'm sure Safari is messing up with cookies :(

Screen Shot 2022-08-17 at 11 10 28 pm

Not sure if you have the luxury but in my case I had to use the redirect mode, so I ended up using the id_token (provided by Google when the user is redirected back to my callback URL) to get the user's email via the https://oauth2.googleapis.com/tokeninfo?id_token={THE_ID_TOKEN_HERE} endpoint, obviously requires some backend work

mattvalleycodes avatar Aug 17 '22 13:08 mattvalleycodes