diff --git a/packages/firebase_auth/CHANGELOG.md b/packages/firebase_auth/CHANGELOG.md index d2b0aa1a4e34..18ee992a144c 100644 --- a/packages/firebase_auth/CHANGELOG.md +++ b/packages/firebase_auth/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.14.0+3 + +* Handle incorrect response from native iOS SDK. + ## 0.14.0+2 * Reduce compiler warnings on iOS port by replacing `int` with `long` backing in returned timestamps. diff --git a/packages/firebase_auth/lib/src/firebase_auth.dart b/packages/firebase_auth/lib/src/firebase_auth.dart index 8f0c30a13544..892fce8ad7bc 100644 --- a/packages/firebase_auth/lib/src/firebase_auth.dart +++ b/packages/firebase_auth/lib/src/firebase_auth.dart @@ -117,9 +117,10 @@ class FirebaseAuth { }) async { assert(email != null); return await channel.invokeListMethod( - 'fetchSignInMethodsForEmail', - {'email': email, 'app': app.name}, - ); + 'fetchSignInMethodsForEmail', + {'email': email, 'app': app.name}, + ) ?? + >[]; } /// Triggers the Firebase Authentication backend to send a password-reset diff --git a/packages/firebase_auth/pubspec.yaml b/packages/firebase_auth/pubspec.yaml index 163957b97e9b..3ca1336ba40f 100755 --- a/packages/firebase_auth/pubspec.yaml +++ b/packages/firebase_auth/pubspec.yaml @@ -4,7 +4,7 @@ description: Flutter plugin for Firebase Auth, enabling Android and iOS like Google, Facebook and Twitter. author: Flutter Team homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_auth -version: 0.14.0+2 +version: 0.14.0+3 flutter: plugin: