onAuthStateChanged not triggering on sign in and log out #6560
-
Looking for some assistance on why my authHandlers.tsx
Navigation.tsx
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There are a bunch of ways things can go wrong, and it sounds like you have an issue, not a discussion, however your mention of other modules makes me question if this is a react-native-firebase problem or not. We have a fully working auth demo that demonstrates it working That line fires. The dependencies are a little out of date, but nothing about it will stop working if I update, my work projects are up to date and they work - onAuthStateChanged works, I was just using it yesterday, and am about to again this morning. If you can reproduce using that demonstration we have a bug, otherwise there is something going on in your project and I urge you to make a simple - no other dependencies included - App.tsx that is just react-native + react-native-firebase and does an auth with the listener and show it works (or that it doesn't! Then file an issue) |
Beta Was this translation helpful? Give feedback.
-
Mine is getting null |
Beta Was this translation helpful? Give feedback.
There are a bunch of ways things can go wrong, and it sounds like you have an issue, not a discussion, however your mention of other modules makes me question if this is a react-native-firebase problem or not.
We have a fully working auth demo that demonstrates it working
https://github.com/invertase/react-native-firebase-authentication-example/blob/68bd37f8c219f892655b40c73e9818370f368b82/template/src/app/App.tsx#L38
That line fires.
The dependencies are a little out of date, but nothing about it will stop working if I update, my work projects are up to date and they work - onAuthStateChanged works, I was just using it yesterday, and am about to again this morning.
If you can reproduce u…