Skip to content

Commit

Permalink
fix(firebase_auth): on iOS use sendEmailVerificationWithActionCodeSet…
Browse files Browse the repository at this point in the history
…tings instead of sendEmailVerificationWithCompletion (firebase#3686)

* Use sendEmailVerificationWithActionCodeSettings

* fix formatting

Co-authored-by: Salakar <[email protected]>
  • Loading branch information
Slowhand0309 and Salakar authored Oct 5, 2020
1 parent a6403ba commit 235b45e
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -705,13 +705,16 @@ - (void)userSendEmailVerification:(id)arguments
return;
}

[currentUser sendEmailVerificationWithCompletion:^(NSError *_Nullable error) {
if (error != nil) {
result.error(nil, nil, nil, error);
} else {
result.success(nil);
}
}];
FIRActionCodeSettings *actionCodeSettings =
[self getFIRActionCodeSettingsFromArguments:arguments];
[currentUser sendEmailVerificationWithActionCodeSettings:actionCodeSettings
completion:^(NSError *_Nullable error) {
if (error != nil) {
result.error(nil, nil, nil, error);
} else {
result.success(nil);
}
}];
}

- (void)userUnlink:(id)arguments withMethodCallResult:(FLTFirebaseMethodCallResult *)result {
Expand Down

0 comments on commit 235b45e

Please sign in to comment.