diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/attestation/verifications/verifyFIDOU2F.ts | 7 | ||||
-rw-r--r-- | src/types.ts | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/attestation/verifications/verifyFIDOU2F.ts b/src/attestation/verifications/verifyFIDOU2F.ts index a0f17f5..12cc808 100644 --- a/src/attestation/verifications/verifyFIDOU2F.ts +++ b/src/attestation/verifications/verifyFIDOU2F.ts @@ -1,6 +1,6 @@ import base64url from 'base64url'; -import { AttestationObject, VerifiedAttestation } from '@types'; +import { AttestationObject, VerifiedAttestation, U2F_USER_PRESENTED } from '@types'; import toHash from '@helpers/toHash'; import convertCOSEtoPKCS from '@helpers/convertCOSEtoPKCS'; import convertASN1toPEM from '@helpers/convertASN1toPEM'; @@ -8,10 +8,7 @@ import verifySignature from '@helpers/verifySignature'; import parseAttestationAuthData from '../parseAttestationAuthData'; -/** - * U2F Presence constant - */ -const U2F_USER_PRESENTED = 0x01; + export default function verifyAttestationFIDOU2F( diff --git a/src/types.ts b/src/types.ts index 0442b31..c419727 100644 --- a/src/types.ts +++ b/src/types.ts @@ -110,3 +110,7 @@ export type ParsedAssertionAuthData = { counter: number, counterBuf: Buffer, }; + +// U2F Presence constant +export const U2F_USER_PRESENTED = 0x01; + |