diff options
author | Matthew Miller <matthew@millerti.me> | 2021-08-27 06:35:55 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2021-08-27 06:35:55 -0700 |
commit | de4b41c30b847dbed0a022cb2a51607426c68ffc (patch) | |
tree | a1c1bf1452369660dd5ac8c475cb5c4531d9fb72 /packages/server/src | |
parent | 6cb53ff7d77f1bb6918b946d797c03607fb989d8 (diff) |
Clean up a couple of "assertion"'s
Diffstat (limited to 'packages/server/src')
-rw-r--r-- | packages/server/src/authentication/verifyAuthenticationResponse.test.ts | 2 | ||||
-rw-r--r-- | packages/server/src/authentication/verifyAuthenticationResponse.ts | 2 |
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}`); } |