When reauthenticateWithCredential method is called, app crashes on iOS and Android.
I would like to change user password. This is my code:
...
firebase.auth().currentUser.reauthenticateWithCredential(email, password).then(() => {
return user.updatePassword(newPassword)
}).then(() => {
...
Xcode log says:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Either IDToken or accessToken must be supplied.'
On Android:

My environment:
"react": "16.2.0",
"react-native": "0.52.0",
"react-native-firebase": "^3.1.1",
reauthenticateWithCredential needs a credential, not the email and password:
const credential = firebase.auth.EmailAuthProvider.credential(email, password);
firebase.auth().currentUser.reauthenticateWithCredential(credential).then(() => {
});
Most helpful comment
reauthenticateWithCredentialneeds a credential, not the email and password: