Skip to content

Commit

Permalink
fix(auth, web): fix an issue preventing Web to properly parse provide…
Browse files Browse the repository at this point in the history
…rData (#11301)
  • Loading branch information
Lyokone committed Jul 17, 2023
1 parent 91ccc57 commit 0829905
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ class UserWeb extends UserPlatform {
.map((auth_interop.UserInfo webUserInfo) => <String, dynamic>{
'displayName': webUserInfo.displayName,
'email': webUserInfo.email,
// isAnonymous is always false for providerData
'isAnonymous': false,
// isEmailVerified is always true for providerData
'isEmailVerified': true,
'phoneNumber': webUserInfo.phoneNumber,
'providerId': webUserInfo.providerId,
'photoUrl': webUserInfo.photoURL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class UserInfo<T extends auth_interop.UserInfoJsImpl>

/// User account.
///
/// See: <https://firebase.google.com/docs/reference/js/firebase.User>.
/// See: <https://firebase.google.com/docs/reference/js/auth.user>.
class User extends UserInfo<auth_interop.UserJsImpl> {
static final _expando = Expando<User>();

Expand Down

0 comments on commit 0829905

Please sign in to comment.