Skip to content

Commit d24d596

Browse files
docs(firebase_auth): replace deprecated updateEmail with verifyBeforeUpdateEmail(#17626) (#17798)
* docs(firebase_auth): replace deprecated updateEmail with verifyBeforeUpdateEmail * fix: escaping slashes removed
1 parent a6a08d6 commit d24d596

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎docs/auth/manage-users.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

7675
To 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+
114115
Note: To set a user's email address, the user must have signed in recently.
115116
See [Re-authenticate a user](#re-authenticate_a_user).
116117

@@ -190,7 +191,6 @@ await user?.delete();
190191
Important: To set a user's email address, the user must have signed in recently.
191192
See [Re-authenticate a user](#re-authenticate_a_user).
192193

193-
194194
You can also delete users from the Authentication section of the
195195
[Firebase console](https://console.firebase.google.com/), on the Users page.
196196

0 commit comments

Comments
 (0)