Closed michaelmika closed 6 years ago
Have you checked that you have the latest google play services on the device?
I'm not sure we're going to be able to help here as the errors are internal to the Firebase / Google Play Services libraries, and as it's working on other devices, there might be some sort of mismatch going on...
Closing this issue as no response from issue reporter.
Issue
I use the firebase Authentication with no custom tokens (I do not receive or store them explicitly).
Code in
componentWillMount
:This works for Web and iOS and even on my Android device running android 8.x
But my emulated android device running android 6.0 does not refresh the token when it is expired and therefor returns a user with an expired token in the code above. This causes the database operations in
this.props.loadUser(user)
to crash with these errors:In my understanding
onAuthStateChanged
should automatically refresh the token if necessary, or at least return not a valid user. I have also tried to refresh the token by calling the following in the promise ofonAuthStateChanged
:Environment
Application Target Platform: Android Marshmallow (6.0, API 23)
Development Operating System: Android Studio 3.0.1
Build Tools: gradle version: 2.2.3
React Native version: 0.52.2
RNFirebase Version: react-native-firebase@3.2.5
Firebase Module: Auth