[ios] sendEmailVerification now correctly returns the currentUser

This commit is contained in:
Michael Diarmid 2017-06-20 19:49:45 +01:00 committed by GitHub
parent 48cd86e353
commit 2b6fe541e8
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 {