Skip to content

Commit 066ec3a

Browse files
author
renkelvin
committed
pr issues
1 parent fa82ee5 commit 066ec3a

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

FirebaseAuth/Sources/Backend/FIRAuthBackend.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@
552552
static NSString *const kInvalidRecaptchaVersion = @"INVALID_RECAPTCHA_VERSION";
553553

554554
/** @var kInvalidLoginCredentials
555-
@brief This is the error message the server will respond with if the login credentails is
555+
@brief This is the error message the server will respond with if the login credentials is
556556
invalid. in the request.
557557
*/
558558
static NSString *const kInvalidLoginCredentials = @"INVALID_LOGIN_CREDENTIALS";

FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ NS_SWIFT_NAME(Auth)
402402
/** @fn signInWithEmail:password:completion:
403403
@brief Signs in using an email address and password. When [Email Enumeration
404404
Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection)
405-
is enabled, this method fails with "auth/invalid-credential" in case of an invalid
405+
is enabled, this method fails with FIRAuthErrorCodeInvalidLoginCredentials in case of an invalid
406406
email/password.
407407
408408
@param email The user's email address.

FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuthErrors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ typedef NS_ERROR_ENUM(FIRAuthErrorDomain, FIRAuthErrorCode){
458458
*/
459459
FIRAuthErrorCodeRecaptchaSDKNotLinked = 17208,
460460

461-
/** Indicates that the long in credentials is invalid.
461+
/** Indicates that the login credentials is invalid.
462462
*/
463463
FIRAuthErrorCodeInvalidLoginCredentials = 17213,
464464

FirebaseAuth/Sources/Public/FirebaseAuth/FIRUser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ NS_SWIFT_NAME(User)
132132

133133
/** @fn updateEmail:completion:
134134
@brief Updates the email address for the user. On success, the cached user profile data is
135-
updated. Throws "auth/operation-not-allowed" error when [Email Enumeration
135+
updated. Throws FIRAuthErrorCodeInvalidLoginCredentials error when [Email Enumeration
136136
Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection)
137137
is enabled.
138138
@remarks May fail if there is already an account with this email address that was created using
@@ -163,7 +163,7 @@ NS_SWIFT_NAME(User)
163163
- (void)updateEmail:(NSString *)email
164164
completion:(nullable void (^)(NSError *_Nullable error))completion
165165
NS_SWIFT_NAME(updateEmail(to:completion:))
166-
DEPRECATED_MSG_ATTRIBUTE("Use verifyBeforeUpdateEmail() instead.");
166+
DEPRECATED_MSG_ATTRIBUTE("Use sendEmailVerificationBeforeUpdatingEmail: instead.");
167167

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

FirebaseAuth/Tests/Unit/FIRAuthTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ - (void)testFetchSignInMethodsForEmailSuccess {
434434
});
435435
XCTestExpectation *expectation = [self expectationWithDescription:@"callback"];
436436
#pragma clang diagnostic push
437-
#pragma clang diagnostic ignored "-Weverything"
437+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
438438
[[FIRAuth auth] fetchSignInMethodsForEmail:kEmail
439439
completion:^(NSArray<NSString *> *_Nullable signInMethods,
440440
NSError *_Nullable error) {
@@ -457,7 +457,7 @@ - (void)testFetchSignInMethodsForEmailFailure {
457457
.andDispatchError2([FIRAuthErrorUtils tooManyRequestsErrorWithMessage:nil]);
458458
XCTestExpectation *expectation = [self expectationWithDescription:@"callback"];
459459
#pragma clang diagnostic push
460-
#pragma clang diagnostic ignored "-Weverything"
460+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
461461
[[FIRAuth auth] fetchSignInMethodsForEmail:kEmail
462462
completion:^(NSArray<NSString *> *_Nullable signInMethods,
463463
NSError *_Nullable error) {

FirebaseAuth/Tests/Unit/FIRUserTests.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ - (void)testUpdateEmailSuccess {
770770
});
771771
});
772772
#pragma clang diagnostic push
773-
#pragma clang diagnostic ignored "-Weverything"
773+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
774774
[user updateEmail:kNewEmail
775775
completion:^(NSError *_Nullable error) {
776776
XCTAssertNil(error);
@@ -833,7 +833,7 @@ - (void)testUpdateEmailWithAuthLinkAccountSuccess {
833833
});
834834
});
835835
#pragma clang diagnostic push
836-
#pragma clang diagnostic ignored "-Weverything"
836+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
837837
[user updateEmail:kNewEmail
838838
completion:^(NSError *_Nullable error) {
839839
XCTAssertNil(error);
@@ -869,7 +869,7 @@ - (void)testUpdateEmailFailure {
869869
.andDispatchError2([FIRAuthErrorUtils
870870
invalidEmailErrorWithMessage:nil]);
871871
#pragma clang diagnostic push
872-
#pragma clang diagnostic ignored "-Weverything"
872+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
873873
[user
874874
updateEmail:kNewEmail
875875
completion:^(NSError *_Nullable error) {
@@ -910,7 +910,7 @@ - (void)testUpdateEmailAutoSignOut {
910910
.andDispatchError2([FIRAuthErrorUtils
911911
invalidUserTokenErrorWithMessage:nil]);
912912
#pragma clang diagnostic push
913-
#pragma clang diagnostic ignored "-Weverything"
913+
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
914914
[user updateEmail:kNewEmail
915915
completion:^(NSError *_Nullable error) {
916916
XCTAssertTrue([NSThread isMainThread]);

0 commit comments

Comments
 (0)