Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

[firebase_auth] fetchSignInMethodsForEmail returns null on iOS, empty array on Android #2002

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/firebase_auth/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
7 changes: 4 additions & 3 deletions packages/firebase_auth/lib/src/firebase_auth.dart
Original file line number Diff line number Diff line change
@@ -117,9 +117,10 @@ class FirebaseAuth {
}) async {
assert(email != null);
return await channel.invokeListMethod<String>(
'fetchSignInMethodsForEmail',
<String, String>{'email': email, 'app': app.name},
);
'fetchSignInMethodsForEmail',
<String, String>{'email': email, 'app': app.name},
) ??
<List<String>>[];
}

/// Triggers the Firebase Authentication backend to send a password-reset
2 changes: 1 addition & 1 deletion packages/firebase_auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ description: Flutter plugin for Firebase Auth, enabling Android and iOS
like Google, Facebook and Twitter.
author: Flutter Team <[email protected]>
homepage: https://github.com/flutter/plugins/tree/master/packages/firebase_auth
version: 0.14.0+2
version: 0.14.0+3

flutter:
plugin: