In Chrome, works regularly but not in Incognito Mode
See original GitHub issueI have this google login configuration
<GoogleLogin clientId={GOOGLE_CLIENT_ID} onSuccess={responseGoogle} onFailure={responseGoogle} accessType='offline' responseType='code' prompt='select_account' uxMode='redirect' redirectUri='http://localhost:3000/workspace/' render={(renderProps) => ( <button className='GoogleSignInButton Primary' onClick={renderProps.onClick} disabled={renderProps.disabled}> <FcGoogle size={24} className='GoogleIcon' /> Sign In with Google </button> )} />
It works regularly in Google Chrome, but when I try it in Incognito mode, I keep getting this error: popup_closed_by_user
.
Any idea why it would work regularly but not in Incognito Mode?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:24
- Comments:17
Top GitHub Comments
For those having this error in incognito mode:
This is actually caused by the browser blocking third party cookies, so you have to handle this error and/or display the user a proper explanation on how to allow them.
On Chrome by clicking the eye showing up in the address bar, you should be able to toggle that after clicking the text in blue:
To fix this issue in Google we need to go to Settings…Search for cookies and then as shown in the photo enable third-party cookies in incognito mode.