Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

feat: able to update phone number with auth.update method #81

Merged
merged 3 commits into from
Jul 8, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/src/user_attributes.dart
Original file line number Diff line number Diff line change
@@ -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<String, dynamic> toJson() {
final Map<String, dynamic> 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;
Expand Down