FirebaseAuthentication addListener does not listen #532
-
Good evening and happy holidays everyone! 🎉🎊🥳
I haven't found a real example to do this, but unfortunately I can't keep listening. I state that when I load the component it returns the user object so there are no project configuration problems Thanks for your support! 🙏🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Your approach is correct.
Yes, this is because the Firebase SDK does not call this listener in this case, see this SO answer. |
Beta Was this translation helpful? Give feedback.
-
OK thank you! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Your approach is correct.
addListener('authStateChange', ...)
is the right method.Attention: If you also use the Firebase JS SDK on Android and iOS, then you must use the listener from the Firebase JS SDK.
Yes, this is because the Firebase SDK does not call this listener in this case, see this SO answer.