[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) {
|
if (error) {
|
||||||
[self promiseRejectAuthException:reject error:error];
|
[self promiseRejectAuthException:reject error:error];
|
||||||
} else {
|
} else {
|
||||||
FIRUser *userAfterUpdate = [FIRAuth authWithApp:firApp].currentUser;
|
[self reloadAndReturnUser:user resolver:resolve rejecter: reject];
|
||||||
[self promiseWithUser:resolve rejecter:reject user:userAfterUpdate];
|
|
||||||
}
|
}
|
||||||
}];
|
}];
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue