2
0
mirror of synced 2025-02-18 09:17:22 +00:00

[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

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 {