[auth][ios] Reload the user after updating their email address to ensure it’s up to date
This commit is contained in:
parent
7b6d6c8728
commit
447f74c1d1
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue