Skip to content

Commit

Permalink
pr issues
Browse files Browse the repository at this point in the history
  • Loading branch information
renkelvin committed Nov 9, 2023
1 parent fa82ee5 commit 066ec3a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion FirebaseAuth/Sources/Backend/FIRAuthBackend.m
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@
static NSString *const kInvalidRecaptchaVersion = @"INVALID_RECAPTCHA_VERSION";

/** @var kInvalidLoginCredentials
@brief This is the error message the server will respond with if the login credentails is
@brief This is the error message the server will respond with if the login credentials is
invalid. in the request.
*/
static NSString *const kInvalidLoginCredentials = @"INVALID_LOGIN_CREDENTIALS";
Expand Down
2 changes: 1 addition & 1 deletion FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ NS_SWIFT_NAME(Auth)
/** @fn signInWithEmail:password:completion:
@brief Signs in using an email address and password. When [Email Enumeration
Protection](https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection)
is enabled, this method fails with "auth/invalid-credential" in case of an invalid
is enabled, this method fails with FIRAuthErrorCodeInvalidLoginCredentials in case of an invalid
email/password.
@param email The user's email address.
Expand Down
2 changes: 1 addition & 1 deletion FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuthErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ typedef NS_ERROR_ENUM(FIRAuthErrorDomain, FIRAuthErrorCode){
*/
FIRAuthErrorCodeRecaptchaSDKNotLinked = 17208,

/** Indicates that the long in credentials is invalid.
/** Indicates that the login credentials is invalid.
*/
FIRAuthErrorCodeInvalidLoginCredentials = 17213,

Expand Down
4 changes: 2 additions & 2 deletions FirebaseAuth/Sources/Public/FirebaseAuth/FIRUser.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ NS_SWIFT_NAME(User)

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

/** @fn updatePassword:completion:
@brief Updates the password for the user. On success, the cached user profile data is updated.
Expand Down
4 changes: 2 additions & 2 deletions FirebaseAuth/Tests/Unit/FIRAuthTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ - (void)testFetchSignInMethodsForEmailSuccess {
});
XCTestExpectation *expectation = [self expectationWithDescription:@"callback"];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[[FIRAuth auth] fetchSignInMethodsForEmail:kEmail
completion:^(NSArray<NSString *> *_Nullable signInMethods,
NSError *_Nullable error) {
Expand All @@ -457,7 +457,7 @@ - (void)testFetchSignInMethodsForEmailFailure {
.andDispatchError2([FIRAuthErrorUtils tooManyRequestsErrorWithMessage:nil]);
XCTestExpectation *expectation = [self expectationWithDescription:@"callback"];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[[FIRAuth auth] fetchSignInMethodsForEmail:kEmail
completion:^(NSArray<NSString *> *_Nullable signInMethods,
NSError *_Nullable error) {
Expand Down
8 changes: 4 additions & 4 deletions FirebaseAuth/Tests/Unit/FIRUserTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ - (void)testUpdateEmailSuccess {
});
});
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[user updateEmail:kNewEmail
completion:^(NSError *_Nullable error) {
XCTAssertNil(error);
Expand Down Expand Up @@ -833,7 +833,7 @@ - (void)testUpdateEmailWithAuthLinkAccountSuccess {
});
});
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[user updateEmail:kNewEmail
completion:^(NSError *_Nullable error) {
XCTAssertNil(error);
Expand Down Expand Up @@ -869,7 +869,7 @@ - (void)testUpdateEmailFailure {
.andDispatchError2([FIRAuthErrorUtils
invalidEmailErrorWithMessage:nil]);
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[user
updateEmail:kNewEmail
completion:^(NSError *_Nullable error) {
Expand Down Expand Up @@ -910,7 +910,7 @@ - (void)testUpdateEmailAutoSignOut {
.andDispatchError2([FIRAuthErrorUtils
invalidUserTokenErrorWithMessage:nil]);
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Weverything"
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[user updateEmail:kNewEmail
completion:^(NSError *_Nullable error) {
XCTAssertTrue([NSThread isMainThread]);
Expand Down

0 comments on commit 066ec3a

Please sign in to comment.