[ios][auth] updatePassword fix

updatePassword using default app always by default, now uses correct app
This commit is contained in:
Michael Diarmid 2017-11-10 22:03:15 +00:00 committed by GitHub
parent d005e2f0aa
commit 1b6e4cbaad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {