diff options
author | Matthew Miller <matthew@millerti.me> | 2020-05-21 16:23:29 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2020-05-21 16:23:29 -0700 |
commit | 014b24eac05ef0ff6a49f1a423988a639321b218 (patch) | |
tree | 98c7f19a2f8764039b1e51a9c25c184f6466ffae | |
parent | e93dc7190c20453e46c7b9bd21a483eaf9f3df80 (diff) |
Fix some error messaging
-rw-r--r-- | packages/server/src/assertion/verifyAssertionResponse.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/assertion/verifyAssertionResponse.ts b/packages/server/src/assertion/verifyAssertionResponse.ts index 2a5dd8f..54addae 100644 --- a/packages/server/src/assertion/verifyAssertionResponse.ts +++ b/packages/server/src/assertion/verifyAssertionResponse.ts @@ -43,7 +43,7 @@ export default function verifyAssertionResponse( if (type !== 'webauthn.get') { console.error('type did not equal "webauthn.get"'); console.debug('attestation\'s type:', type); - throw new Error('Attestation type was an unexpected value'); + throw new Error('Assertion type was an unexpected value'); } const authDataBuffer = base64url.toBuffer(base64AuthenticatorData); @@ -51,7 +51,7 @@ export default function verifyAssertionResponse( console.log('parsed authData:', authData); if (!(authData.flags & U2F_USER_PRESENTED)) { - throw new Error('User was NOT present during authentication!'); + throw new Error('User was NOT present during assertion!'); } const { |