abacritt / angularx-social-login

Social login and authentication module for Angular 17
634 stars 387 forks source link

Google login not workin on Chrome incognito mode #487

Closed quedicesebas closed 2 years ago

quedicesebas commented 2 years ago

I'm getting this always on Incogmnito (private) mode on Chrome:

core.mjs:6485 ERROR Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading 'signIn')
TypeError: Cannot read properties of undefined (reading 'signIn')
    at :4200/vendor.js:18927:51
    at new ZoneAwarePromise (:4200/polyfills.js:4528:29)
    at GoogleLoginProvider.signIn (:4200/vendor.js:18925:12)
    at :4200/vendor.js:19118:26
...
DydjyZ commented 2 years ago

I have the same error. Moreover, I have this error before the above error :

angularx-social-login.js:214 details: "Cookies are not enabled in current environment." error: "idpiframe_initialization_failed"

beldenge commented 2 years ago

If you want it to work in incognito mode, I suggest you toggle off "Block third-party cookies" on the initial incognito landing screen.

Heatmanofurioso commented 2 years ago

Hi @sebrojas14 Was Beldenge's answer sufficient for you?

Heatmanofurioso commented 2 years ago

This issue seems to also be a duplicated of what's being discussed in #292

Heatmanofurioso commented 2 years ago

Closing as a duplicate of #292