diff options
author | Matthew Miller <matthew@millerti.me> | 2022-07-27 22:11:38 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-07-27 22:11:38 -0700 |
commit | e55cf4f3948ae07e8233fa10211613e2769596fc (patch) | |
tree | a38d0a391ae103084859d49f6ec8b8840d751ef6 /packages/server/src | |
parent | df183cd36ab29d72b6c65c871ff87bcc51e5957b (diff) |
Export named convertAAGUIDToString()
Diffstat (limited to 'packages/server/src')
4 files changed, 4 insertions, 4 deletions
diff --git a/packages/server/src/helpers/convertAAGUIDToString.ts b/packages/server/src/helpers/convertAAGUIDToString.ts index 36e251b..0fb8356 100644 --- a/packages/server/src/helpers/convertAAGUIDToString.ts +++ b/packages/server/src/helpers/convertAAGUIDToString.ts @@ -1,7 +1,7 @@ /** * Convert the aaguid buffer in authData into a UUID string */ -export default function convertAAGUIDToString(aaguid: Buffer): string { +export function convertAAGUIDToString(aaguid: Buffer): string { // Raw Hex: adce000235bcc60a648b0b25f1f05503 const hex = aaguid.toString('hex'); diff --git a/packages/server/src/helpers/index.ts b/packages/server/src/helpers/index.ts index 248a31f..5c0c9a6 100644 --- a/packages/server/src/helpers/index.ts +++ b/packages/server/src/helpers/index.ts @@ -1,4 +1,4 @@ -import convertAAGUIDToString from './convertAAGUIDToString'; +import { convertAAGUIDToString } from './convertAAGUIDToString'; import convertCertBufferToPEM from './convertCertBufferToPEM'; import convertCOSEtoPKCS from './convertCOSEtoPKCS'; import convertPublicKeyToPEM from './convertPublicKeyToPEM'; diff --git a/packages/server/src/registration/verifyRegistrationResponse.ts b/packages/server/src/registration/verifyRegistrationResponse.ts index 8829db1..b701118 100644 --- a/packages/server/src/registration/verifyRegistrationResponse.ts +++ b/packages/server/src/registration/verifyRegistrationResponse.ts @@ -15,7 +15,7 @@ import parseAuthenticatorData from '../helpers/parseAuthenticatorData'; import toHash from '../helpers/toHash'; import decodeCredentialPublicKey from '../helpers/decodeCredentialPublicKey'; import { COSEKEYS } from '../helpers/convertCOSEtoPKCS'; -import convertAAGUIDToString from '../helpers/convertAAGUIDToString'; +import { convertAAGUIDToString } from '../helpers/convertAAGUIDToString'; import { parseBackupFlags } from '../helpers/parseBackupFlags'; import settingsService from '../services/settingsService'; diff --git a/packages/server/src/services/metadataService.ts b/packages/server/src/services/metadataService.ts index 41fb39e..ea83532 100644 --- a/packages/server/src/services/metadataService.ts +++ b/packages/server/src/services/metadataService.ts @@ -3,7 +3,7 @@ import { KJUR } from 'jsrsasign'; import validateCertificatePath from '../helpers/validateCertificatePath'; import convertCertBufferToPEM from '../helpers/convertCertBufferToPEM'; -import convertAAGUIDToString from '../helpers/convertAAGUIDToString'; +import { convertAAGUIDToString } from '../helpers/convertAAGUIDToString'; import type { MDSJWTHeader, MDSJWTPayload, |