[ios] sendEmailVerification now correctly returns currentUser

This commit is contained in:
Michael Diarmid 2017-06-20 19:53:42 +01:00 committed by GitHub
parent c8dcba3344
commit a4b4a28541
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,8 @@ RCT_EXPORT_METHOD(sendEmailVerification:(RCTPromiseResolveBlock) resolve rejecte
if (error) {
[self promiseRejectAuthException:reject error:error];
} else {
[self promiseNoUser:resolve rejecter:reject isError:NO];
FIRUser *userAfterUpdate = [FIRAuth auth].currentUser;
[self promiseWithUser:resolve rejecter:reject user:userAfterUpdate];
}
}];
} else {