react-native-firestack
react-native-firestack copied to clipboard
[v3] Error on auth().updateEmail()
Hi,
when trying to call the updateEmail function (branch: v3) (no matter whether with an empty string, or a valid email address), there's an error in lib/utils/index.js in the toWebSDKErrorCode(code, prefix) function:

Looks like the code variable is empty.. Could you fix this please? It's not really usable otherwise :) Thanks!
+1
Same goes for signInWithEmailAndPassword(), as soon as a login fails (wrong password), the app crashes with the same error mentioned above. This makes this branch unusable for me..
@skizzo Seems like this has been a common issue.. I have submitted a PR in regards to discussion happening here : https://github.com/fullstackreact/react-native-firestack/issues/288
The issue is the code in Objective-C is not properly mapped. Javascript in this case expects "code" to be a string but the value passed is actually a long.
@skizzo @smkhalsa @jsbranco fixed over at https://github.com/invertase/react-native-firebase
Its getting hammered with updates and fixes over there, auth is now at 100% implementation on both platforms for example.