File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ three ways to get a `User` object representing the current user:
7070 - The auth object has not finished initializing. If you use a listener to keep
7171 track of the user's sign-in status, you don't need to handle this case.
7272
73-
7473## Get a user's provider-specific profile information
7574
7675To get the profile information retrieved from the sign-in providers linked to a
@@ -105,12 +104,14 @@ await user?.updatePhotoURL("https://example.com/jane-q-user/profile.jpg");
105104
106105## Set a user's email address
107106
108- You can set a user's email address with the ` updateEmail ()` method. For example:
107+ You can set a user's email address with the ` verifyBeforeUpdateEmail ()` method. For example:
109108
110109``` dart
111- await user?.updateEmail ("janeq@example.com");
110+ await user?.verifyBeforeUpdateEmail ("janeq@example.com");
112111```
113112
113+ This method sends a verification email to the new address. The user's email will be updated only after they verify the new email address.
114+
114115Note: To set a user's email address, the user must have signed in recently.
115116See [ Re-authenticate a user] ( #re-authenticate_a_user ) .
116117
@@ -190,7 +191,6 @@ await user?.delete();
190191Important: To set a user's email address, the user must have signed in recently.
191192See [ Re-authenticate a user] ( #re-authenticate_a_user ) .
192193
193-
194194You can also delete users from the Authentication section of the
195195[ Firebase console] ( https://console.firebase.google.com/ ) , on the Users page.
196196
You can’t perform that action at this time.
0 commit comments