mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-22 11:16:18 +08:00
[auth][ios] Reload the user after updating their email address to ensure it’s up to date
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user