mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-01-12 22:50:20 +08:00
[ios][auth] updatePassword fix
updatePassword using default app always by default, now uses correct app
This commit is contained in:
@@ -335,7 +335,7 @@ RCT_EXPORT_METHOD(updatePassword:
|
||||
(RCTPromiseRejectBlock) reject) {
|
||||
FIRApp *firApp = [FIRApp appNamed:appName];
|
||||
|
||||
FIRUser *user = [FIRAuth auth].currentUser;
|
||||
FIRUser *user = [FIRAuth authWithApp:firApp].currentUser;
|
||||
|
||||
if (user) {
|
||||
[user updatePassword:password completion:^(NSError *_Nullable error) {
|
||||
|
||||
Reference in New Issue
Block a user