[auth][ios] Reload the user after updating their email address to ensure it’s up to date

This commit is contained in:
Chris Bianca 2017-10-26 15:22:42 +01:00
parent 7b6d6c8728
commit 447f74c1d1
1 changed files with 1 additions and 2 deletions

View File

@ -309,8 +309,7 @@ RCT_EXPORT_METHOD(updateEmail:
if (error) {
[self promiseRejectAuthException:reject error:error];
} else {
FIRUser *userAfterUpdate = [FIRAuth authWithApp:firApp].currentUser;
[self promiseWithUser:resolve rejecter:reject user:userAfterUpdate];
[self reloadAndReturnUser:user resolver:resolve rejecter: reject];
}
}];
} else {