Skip to content

Commit

Permalink
ran check.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoshouzi-gh committed Apr 2, 2024
1 parent f80b1a3 commit a35b791
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion FirebaseAuth/Sources/User/FIRUser.m
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ - (void)finalizePasskeyEnrollmentWithPlatformCredential:
[platformCredential.rawClientDataJSON base64EncodedStringWithOptions:0];
NSString *attestationObject =
[platformCredential.rawAttestationObject base64EncodedStringWithOptions:0];

// If passkey name is not provided, we will provide a firebase formatted default name.
if (self.passkeyName == nil || [self.passkeyName isEqual:@""]) {
self.passkeyName = @"Unnamed account (Apple)";
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 @@ -413,7 +413,6 @@
*/
static NSString *const kPasskeyName = @"mockPasskeyName";


/** @var kDefaultPasskeyName
@brief default passkey name.
*/
Expand Down Expand Up @@ -1027,7 +1026,7 @@ - (void)testStartPasskeyEnrollmentWithNilNameSuccess {
XCTAssertNil(error);
XCTAssertEqualObjects(
user.passkeyName,
kDefaultPasskeyName);
kDefaultPasskeyName);
XCTAssertEqualObjects(
[[request challenge]
base64EncodedStringWithOptions:
Expand Down Expand Up @@ -1083,7 +1082,7 @@ - (void)testStartPasskeyEnrollmentWithEmptyNameSuccess {
XCTAssertNil(error);
XCTAssertEqualObjects(
user.passkeyName,
kDefaultPasskeyName);
kDefaultPasskeyName);
XCTAssertEqualObjects(
[[request challenge]
base64EncodedStringWithOptions:
Expand Down Expand Up @@ -1126,7 +1125,8 @@ - (void)testStartPasskeyEnrollmentFailure {
NSError
*_Nullable error) {
XCTAssertNil(request);
XCTAssertNil(user.passkeyName);
XCTAssertNil(
user.passkeyName);
XCTAssertEqual(
error.code,
FIRAuthErrorCodeOperationNotAllowed);
Expand Down

0 comments on commit a35b791

Please sign in to comment.