login-fire icon indicating copy to clipboard operation
login-fire copied to clipboard

Show message for disabled cookies

Open sbeleidy opened this issue 7 years ago • 3 comments

We should add a message and/or fire an event when cookies are not enabled. We would still have some issues for when they are enabled for some domains and not others.

Related

sbeleidy avatar Mar 19 '17 20:03 sbeleidy

Like you said, cookies settings depend of the user and can be different for each domain. I think it's related to the cookies consent part and write a warning log in the console would be enough. Of course, the documentation has to highlight this issue to inform developers that cookies are required for a normal use.

If we want handle cookie consent issue we have to do it properly (providing an easy way to enable them) else, what's the point to display an element that is not usable (we could hide it and display an alert message)? Moreover, login-fire inherits this issue from Google Signin button (and Firebase Auth) so, "it's not our problem".

masonlouchart avatar Mar 20 '17 09:03 masonlouchart

I agree that there's a very limited amount of things we can do to deal with this but I also think that the developer and/or end user won't care why it doesn't work. They'll just know that it doesn't work.

Firing a cookies-disabled event is a very small thing we can do that could let the developer know that there's an issue and they can handle it however they want. It only covers some cases but it's better than nothing.

Maybe showing a message is too much since it may differ based on others' implementation - not sure.

sbeleidy avatar Mar 20 '17 16:03 sbeleidy

You could fire an event with an error code based on the FirebaseError format ("login-fire/cookies-disabled") each time a sign in attempt fails using the login-fire-common-behavior#_fireError method. Maybe it was what you had already planned.

masonlouchart avatar Mar 21 '17 20:03 masonlouchart