From 75429972c31f7d7d4f316d9bbef8a073db8a977a Mon Sep 17 00:00:00 2001 From: Eung Jin Lee Date: Fri, 8 Jul 2022 11:54:05 +0900 Subject: [PATCH 1/3] able to update phone number with auth.update method --- lib/src/user_attributes.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/src/user_attributes.dart b/lib/src/user_attributes.dart index 5972ad5..5900d70 100644 --- a/lib/src/user_attributes.dart +++ b/lib/src/user_attributes.dart @@ -1,14 +1,16 @@ class UserAttributes { String? email; + String? phone; String? password; String? emailChangeToken; dynamic data; - UserAttributes({this.email, this.password, this.emailChangeToken, this.data}); + UserAttributes({this.email, this.phone, this.password, this.emailChangeToken, this.data}); Map toJson() { final Map values = {}; if (email != null) values['email'] = email; + if (phone != null) values['phone'] = phone; if (password != null) values['password'] = password; if (emailChangeToken != null) { values['email_change_token'] = emailChangeToken; From 480189e3b009e108de5278c8e6b71900a341579a Mon Sep 17 00:00:00 2001 From: Eung Jin Lee Date: Fri, 8 Jul 2022 14:02:25 +0900 Subject: [PATCH 2/3] Update user_attributes.dart --- lib/src/user_attributes.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/user_attributes.dart b/lib/src/user_attributes.dart index 5900d70..2827d45 100644 --- a/lib/src/user_attributes.dart +++ b/lib/src/user_attributes.dart @@ -5,7 +5,7 @@ class UserAttributes { String? emailChangeToken; dynamic data; - UserAttributes({this.email, this.phone, this.password, this.emailChangeToken, this.data}); + UserAttributes({this.email, this.phone, this.password, this.emailChangeToken, this.data,}); Map toJson() { final Map values = {}; From a50f12f16d4028187436e813306dabe03469f0aa Mon Sep 17 00:00:00 2001 From: Lee Eung Jin Date: Fri, 8 Jul 2022 14:13:09 +0900 Subject: [PATCH 3/3] respect dart formatter --- lib/src/user_attributes.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/src/user_attributes.dart b/lib/src/user_attributes.dart index 2827d45..c67a91b 100644 --- a/lib/src/user_attributes.dart +++ b/lib/src/user_attributes.dart @@ -5,7 +5,13 @@ class UserAttributes { String? emailChangeToken; dynamic data; - UserAttributes({this.email, this.phone, this.password, this.emailChangeToken, this.data,}); + UserAttributes({ + this.email, + this.phone, + this.password, + this.emailChangeToken, + this.data, + }); Map toJson() { final Map values = {};