Skip to content

Commit d31efd5

Browse files
committed
Add more assertion tests
1 parent 9ac82ef commit d31efd5

File tree

4 files changed

+423
-29
lines changed

4 files changed

+423
-29
lines changed

src/Identity/Core/src/DefaultPasskeyHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ await VerifyClientDataAsync(
433433
// NOTE: We simply fail the ceremony in this case.
434434
if (authenticatorData.SignCount <= storedPasskey.SignCount)
435435
{
436-
throw PasskeyException.SignCountLessThanStoredSignCount();
436+
throw PasskeyException.SignCountLessThanOrEqualToStoredSignCount();
437437
}
438438
}
439439

src/Identity/Core/src/PasskeyExceptionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static PasskeyException ExpectedBackupIneligibleCredential()
8484
public static PasskeyException InvalidAssertionSignature()
8585
=> new("The assertion signature was invalid.");
8686

87-
public static PasskeyException SignCountLessThanStoredSignCount()
87+
public static PasskeyException SignCountLessThanOrEqualToStoredSignCount()
8888
=> new("The authenticator's signature counter is unexpectedly less than or equal to the stored signature counter.");
8989

9090
public static PasskeyException InvalidAttestationObject(Exception ex)

0 commit comments

Comments
 (0)