diff options
Diffstat (limited to 'packages/server/src')
4 files changed, 4 insertions, 4 deletions
diff --git a/packages/server/src/authentication/verifyAuthenticationResponse.ts b/packages/server/src/authentication/verifyAuthenticationResponse.ts index 97a837b..fee6c35 100644 --- a/packages/server/src/authentication/verifyAuthenticationResponse.ts +++ b/packages/server/src/authentication/verifyAuthenticationResponse.ts @@ -9,7 +9,7 @@ import { decodeClientDataJSON } from '../helpers/decodeClientDataJSON'; import toHash from '../helpers/toHash'; import { convertPublicKeyToPEM } from '../helpers/convertPublicKeyToPEM'; import verifySignature from '../helpers/verifySignature'; -import parseAuthenticatorData from '../helpers/parseAuthenticatorData'; +import { parseAuthenticatorData } from '../helpers/parseAuthenticatorData'; import { isBase64URLString } from '../helpers/isBase64URLString'; import { parseBackupFlags } from '../helpers/parseBackupFlags'; import { AuthenticationExtensionsAuthenticatorOutputs } from '../helpers/decodeAuthenticatorExtensions'; diff --git a/packages/server/src/helpers/index.ts b/packages/server/src/helpers/index.ts index 75335ca..7fec10b 100644 --- a/packages/server/src/helpers/index.ts +++ b/packages/server/src/helpers/index.ts @@ -10,7 +10,7 @@ import { generateChallenge } from './generateChallenge'; import { getCertificateInfo } from './getCertificateInfo'; import { isBase64URLString } from './isBase64URLString'; import { isCertRevoked } from './isCertRevoked'; -import parseAuthenticatorData from './parseAuthenticatorData'; +import { parseAuthenticatorData } from './parseAuthenticatorData'; import toHash from './toHash'; import validateCertificatePath from './validateCertificatePath'; import verifySignature from './verifySignature'; diff --git a/packages/server/src/helpers/parseAuthenticatorData.ts b/packages/server/src/helpers/parseAuthenticatorData.ts index 199513a..b130a5e 100644 --- a/packages/server/src/helpers/parseAuthenticatorData.ts +++ b/packages/server/src/helpers/parseAuthenticatorData.ts @@ -5,7 +5,7 @@ import { decodeAuthenticatorExtensions, AuthenticationExtensionsAuthenticatorOut /** * Make sense of the authData buffer contained in an Attestation */ -export default function parseAuthenticatorData(authData: Buffer): ParsedAuthenticatorData { +export function parseAuthenticatorData(authData: Buffer): ParsedAuthenticatorData { if (authData.byteLength < 37) { throw new Error( `Authenticator data was ${authData.byteLength} bytes, expected at least 37 bytes`, diff --git a/packages/server/src/registration/verifyRegistrationResponse.ts b/packages/server/src/registration/verifyRegistrationResponse.ts index 5b2b5da..3e3ba30 100644 --- a/packages/server/src/registration/verifyRegistrationResponse.ts +++ b/packages/server/src/registration/verifyRegistrationResponse.ts @@ -12,7 +12,7 @@ import { } from '../helpers/decodeAttestationObject'; import { AuthenticationExtensionsAuthenticatorOutputs } from '../helpers/decodeAuthenticatorExtensions'; import { decodeClientDataJSON } from '../helpers/decodeClientDataJSON'; -import parseAuthenticatorData from '../helpers/parseAuthenticatorData'; +import { parseAuthenticatorData } from '../helpers/parseAuthenticatorData'; import toHash from '../helpers/toHash'; import { decodeCredentialPublicKey } from '../helpers/decodeCredentialPublicKey'; import { COSEKEYS } from '../helpers/convertCOSEtoPKCS'; |