[ios] sendEmailVerification now correctly returns the currentUser
This commit is contained in:
parent
48cd86e353
commit
2b6fe541e8
|
@ -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