diff --git a/src/module/webauthn-validator/types.ts b/src/module/webauthn-validator/types.ts index 854327c..9c2de3e 100644 --- a/src/module/webauthn-validator/types.ts +++ b/src/module/webauthn-validator/types.ts @@ -9,7 +9,7 @@ export type WebauthnCredential = { export type WebauthnValidatorSignature = { webauthn: WebAuthnData signature: WebauthnSignature | Hex | Uint8Array - usePrecompiled: boolean + usePrecompiled?: boolean } export type WebAuthnData = { diff --git a/src/module/webauthn-validator/usage.ts b/src/module/webauthn-validator/usage.ts index 1d941d1..9b88b91 100644 --- a/src/module/webauthn-validator/usage.ts +++ b/src/module/webauthn-validator/usage.ts @@ -5,7 +5,7 @@ import { parseSignature } from './utils' export const getWebauthnValidatorSignature = ({ webauthn, signature, - usePrecompiled, + usePrecompiled = false, }: WebauthnValidatorSignature) => { const { authenticatorData, clientDataJSON, typeIndex } = webauthn let r: bigint