React-google-login: After redirect on same page didn't get response

Created on 31 Dec 2019  路  8Comments  路  Source: anthonyjgrove/react-google-login

After redirecting on same page, not get response from Google API after login.

Most helpful comment

Make sure to check any extensions you may have running... I was having the same issue but it turned out to be PrivacyBadger blocking some cookies.

All 8 comments

I can confirm this is an issue for a subset of our users. It appears that Firefox and Safari are not impacted, only Google Chrome. All impacted users are on Chrome 79 (but not all users on Chrome 79 experience the issue).

Some more details: The signin dialog opens and the login flow works normally but after the dialog closes neither the onSuccess or onFailure callbacks are called.

In a normal login flow, we see 4 messages passed back to the original window by accounts.google.com. When the login flow fails, only the first 2 messages are sent. We were able to observe this behavior by adding the following code:

window.addEventListener('message',(...args)=>console.log(args))

I faced similar issues but response.getBasicProfile() seems to help

I faced similar issues but response.getBasicProfile() seems to help

Thank you! It's working, I've got the Google response with name etc...

I faced similar issues but response.getBasicProfile() seems to help

Please, Could you explain a little more this solution? Maybe some snippet. @bharathitm @florianzemma

I faced similar issues but response.getBasicProfile() seems to help

Please, Could you explain a little more this solution? Maybe some snippet. @bharathitm @florianzemma

Hi @Danswar look at this :

const responseGoogle = (response) => {
setGoogleResponse(response.getBasicProfile())
}

i do have the same issue :( - any news on this?

Make sure to check any extensions you may have running... I was having the same issue but it turned out to be PrivacyBadger blocking some cookies.

Thank you !!! @DannyHinshaw

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bradeac picture bradeac  路  4Comments

scandinaro picture scandinaro  路  5Comments

SSR
rlancer picture rlancer  路  8Comments

eap picture eap  路  7Comments

tameem92 picture tameem92  路  3Comments