summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src')
-rw-r--r--packages/server/src/authentication/verifyAuthenticationResponse.test.ts2
-rw-r--r--packages/server/src/authentication/verifyAuthenticationResponse.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/authentication/verifyAuthenticationResponse.test.ts b/packages/server/src/authentication/verifyAuthenticationResponse.test.ts
index 6b874a5..212de2c 100644
--- a/packages/server/src/authentication/verifyAuthenticationResponse.test.ts
+++ b/packages/server/src/authentication/verifyAuthenticationResponse.test.ts
@@ -180,7 +180,7 @@ test('should throw an error if user verification is required but user was not ve
}).toThrow(/user could not be verified/i);
});
-// TODO: Get a real TPM assertion in here
+// TODO: Get a real TPM authentication response in here
test.skip('should verify TPM assertion', () => {
const expectedChallenge = 'dG90YWxseVVuaXF1ZVZhbHVlRXZlcnlBc3NlcnRpb24';
jest.spyOn(base64url, 'encode').mockReturnValueOnce(expectedChallenge);
diff --git a/packages/server/src/authentication/verifyAuthenticationResponse.ts b/packages/server/src/authentication/verifyAuthenticationResponse.ts
index 6e5f3e0..cd83be3 100644
--- a/packages/server/src/authentication/verifyAuthenticationResponse.ts
+++ b/packages/server/src/authentication/verifyAuthenticationResponse.ts
@@ -76,7 +76,7 @@ export default function verifyAuthenticationResponse(
const { type, origin, challenge, tokenBinding } = clientDataJSON;
- // Make sure we're handling an assertion
+ // Make sure we're handling an authentication
if (type !== 'webauthn.get') {
throw new Error(`Unexpected authentication response type: ${type}`);
}