File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -278,10 +278,14 @@ public Task<string> TokenAsync(bool forceRefresh) {
278
278
return GetValidFirebaseUserInternal ( ) . TokenAsync ( forceRefresh ) ;
279
279
}
280
280
281
+ /// @deprecated This method is deprecated. Please use
282
+ /// @ref SendEmailVerificationBeforeUpdatingEmailAsync(string) instead.
283
+ ///
281
284
/// Sets the email address for the user.
282
285
///
283
286
/// May fail if there is already an email/password-based account for the same
284
287
/// email address.
288
+ [ System . Obsolete ( "Please use `Task SendEmailVerificationBeforeUpdatingEmailAsync(string)` instead" , false ) ]
285
289
public Task UpdateEmailAsync ( string email ) {
286
290
return GetValidFirebaseUserInternal ( ) . UpdateEmailAsync ( email ) ;
287
291
}
@@ -309,6 +313,12 @@ public Task SendEmailVerificationAsync() {
309
313
return GetValidFirebaseUserInternal ( ) . SendEmailVerificationAsync ( ) ;
310
314
}
311
315
316
+ /// Send an email to verify the ownership of the account, then update
317
+ /// to the new email.
318
+ public Task SendEmailVerificationBeforeUpdatingEmailAsync ( string email ) {
319
+ return GetValidFirebaseUserInternal ( ) . SendEmailVerificationBeforeUpdatingEmailAsync ( email ) ;
320
+ }
321
+
312
322
/// Updates a subset of user profile information.
313
323
public Task UpdateUserProfileAsync ( UserProfile profile ) {
314
324
return GetValidFirebaseUserInternal ( ) . UpdateUserProfileAsync ( profile ) ;
Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ Release Notes
74
74
### Upcoming release
75
75
- Changes
76
76
- General (Android): Improve how property tag logic handles Unity 2022+.
77
+ - Auth: Add FirebaseUser.SendEmailVerificationBeforeUpdatingEmailAsync,
78
+ a new method to verify and change the User's email.
79
+ - Auth: Deprecate the older method of updating emails, UpdateEmail.
77
80
- Dynamic Links: The Dynamic Links SDK is now deprecated. See the [ support
78
81
documentation] ( https://firebase.google.com/support/dynamic-links-faq )
79
82
for more information.
You can’t perform that action at this time.
0 commit comments