[ios] sendEmailVerification now correctly returns currentUser
This commit is contained in:
parent
c8dcba3344
commit
a4b4a28541
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue