Skip to content

Commit 25abe77

Browse files
author
renkelvin
authored
Update method deprecation messages and add changelog (#12122)
1 parent bbd2d09 commit 25abe77

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

FirebaseAuth/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 10.19.0
2+
- [changed] Deprecate `updateEmail(to email: String)` and `fetchSignInMethods(forEmail email: String)`. (#12081)
3+
14
# 10.18.0
25
- [fixed] Fix a bug where anonymous account can't be linked with email password credential. (#11911)
36

FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ NS_SWIFT_NAME(Auth)
397397
completion:(nullable void (^)(NSArray<NSString *> *_Nullable,
398398
NSError *_Nullable))completion
399399
DEPRECATED_MSG_ATTRIBUTE(
400-
"This method returns an empty list when Email Enumeration Protection is enabled.");
400+
"This method is deprecated and will be removed in a future release. This method returns an "
401+
"empty list when Email Enumeration Protection is enabled.");
401402

402403
/** @fn signInWithEmail:password:completion:
403404
@brief Signs in using an email address and password. When [Email Enumeration

FirebaseAuth/Sources/Public/FirebaseAuth/FIRUser.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ NS_SWIFT_NAME(User)
162162
*/
163163
- (void)updateEmail:(NSString *)email
164164
completion:(nullable void (^)(NSError *_Nullable error))completion
165-
NS_SWIFT_NAME(updateEmail(to:completion:))
166-
DEPRECATED_MSG_ATTRIBUTE("Use sendEmailVerificationBeforeUpdatingEmail: instead.");
165+
NS_SWIFT_NAME(updateEmail(to:completion:)) DEPRECATED_MSG_ATTRIBUTE(
166+
"This method is deprecated and will be removed in a future release. Use "
167+
"sendEmailVerification(beforeUpdatingEmail email: String) instead.");
167168

168169
/** @fn updatePassword:completion:
169170
@brief Updates the password for the user. On success, the cached user profile data is updated.

0 commit comments

Comments
 (0)