Skip to content

Commit 6d261cc

Browse files
fix(auth, apple): fetchSignInMethodsForEmail if value is nil, pass empty array. (#11596)
* fix(auth, apple): `fetchSignInMethodsForEmail` if value is `nil`, pass empty array * chore(auth, apple): format code
1 parent 3dab95e commit 6d261cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/firebase_auth/firebase_auth/ios/Classes/FLTFirebaseAuthPlugin.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,11 @@ - (void)fetchSignInMethodsForEmailApp:(nonnull PigeonFirebaseApp *)app
10491049
if (error != nil) {
10501050
completion(nil, [FLTFirebaseAuthPlugin convertToFlutterError:error]);
10511051
} else {
1052-
completion(providers, nil);
1052+
if (providers == nil) {
1053+
completion(@[], nil);
1054+
} else {
1055+
completion(providers, nil);
1056+
}
10531057
}
10541058
}];
10551059
}

0 commit comments

Comments
 (0)