diff options
7 files changed, 25 insertions, 29 deletions
diff --git a/packages/server/src/assertion/verifyAssertionResponse.ts b/packages/server/src/assertion/verifyAssertionResponse.ts index 0d74795..24ee17e 100644 --- a/packages/server/src/assertion/verifyAssertionResponse.ts +++ b/packages/server/src/assertion/verifyAssertionResponse.ts @@ -5,12 +5,11 @@ import { VerifiedAssertion, } from '@simplewebauthn/typescript-types'; -import decodeClientDataJSON from '@helpers/decodeClientDataJSON'; - -import toHash from '@helpers/toHash'; -import convertASN1toPEM from '@helpers/convertASN1toPEM'; -import verifySignature from '@helpers/verifySignature'; -import parseAuthenticatorData from '@helpers/parseAuthenticatorData'; +import decodeClientDataJSON from '../helpers/decodeClientDataJSON'; +import toHash from '../helpers/toHash'; +import convertASN1toPEM from '../helpers/convertASN1toPEM'; +import verifySignature from '../helpers/verifySignature'; +import parseAuthenticatorData from '../helpers/parseAuthenticatorData'; /** * Verify that the user has legitimately completed the login process diff --git a/packages/server/src/attestation/verifications/verifyAndroidSafetyNet.ts b/packages/server/src/attestation/verifications/verifyAndroidSafetyNet.ts index 81781b3..0f604d0 100644 --- a/packages/server/src/attestation/verifications/verifyAndroidSafetyNet.ts +++ b/packages/server/src/attestation/verifications/verifyAndroidSafetyNet.ts @@ -7,11 +7,11 @@ import { SafetyNetJWTSignature, } from '@simplewebauthn/typescript-types'; -import toHash from '@helpers/toHash'; -import verifySignature from '@helpers/verifySignature'; -import convertCOSEtoPKCS from '@helpers/convertCOSEtoPKCS'; -import getCertificateInfo from '@helpers/getCertificateInfo'; -import parseAuthenticatorData from '@helpers/parseAuthenticatorData'; +import toHash from '../../helpers/toHash'; +import verifySignature from '../../helpers/verifySignature'; +import convertCOSEtoPKCS from '../../helpers/convertCOSEtoPKCS'; +import getCertificateInfo from '../../helpers/getCertificateInfo'; +import parseAuthenticatorData from '../../helpers/parseAuthenticatorData'; /** * Verify an attestation response with fmt 'android-safetynet' diff --git a/packages/server/src/attestation/verifications/verifyFIDOU2F.ts b/packages/server/src/attestation/verifications/verifyFIDOU2F.ts index 3ec5f60..e518dc8 100644 --- a/packages/server/src/attestation/verifications/verifyFIDOU2F.ts +++ b/packages/server/src/attestation/verifications/verifyFIDOU2F.ts @@ -1,11 +1,11 @@ import base64url from 'base64url'; import { AttestationObject, VerifiedAttestation } from '@simplewebauthn/typescript-types'; -import toHash from '@helpers/toHash'; -import convertCOSEtoPKCS from '@helpers/convertCOSEtoPKCS'; -import convertASN1toPEM from '@helpers/convertASN1toPEM'; -import verifySignature from '@helpers/verifySignature'; -import parseAuthenticatorData from '@helpers/parseAuthenticatorData'; +import toHash from '../../helpers/toHash'; +import convertCOSEtoPKCS from '../../helpers/convertCOSEtoPKCS'; +import convertASN1toPEM from '../../helpers/convertASN1toPEM'; +import verifySignature from '../../helpers/verifySignature'; +import parseAuthenticatorData from '../../helpers/parseAuthenticatorData'; /** * Verify an attestation response with fmt 'fido-u2f' diff --git a/packages/server/src/attestation/verifications/verifyNone.ts b/packages/server/src/attestation/verifications/verifyNone.ts index 4c0a6cc..423f4fd 100644 --- a/packages/server/src/attestation/verifications/verifyNone.ts +++ b/packages/server/src/attestation/verifications/verifyNone.ts @@ -1,8 +1,8 @@ import base64url from 'base64url'; import { AttestationObject, VerifiedAttestation } from '@simplewebauthn/typescript-types'; -import convertCOSEtoPKCS from '@helpers/convertCOSEtoPKCS'; -import parseAuthenticatorData from '@helpers/parseAuthenticatorData'; +import convertCOSEtoPKCS from '../../helpers/convertCOSEtoPKCS'; +import parseAuthenticatorData from '../../helpers/parseAuthenticatorData'; /** * Verify an attestation response with fmt 'none' diff --git a/packages/server/src/attestation/verifications/verifyPacked.ts b/packages/server/src/attestation/verifications/verifyPacked.ts index 1d7145b..f7b9932 100644 --- a/packages/server/src/attestation/verifications/verifyPacked.ts +++ b/packages/server/src/attestation/verifications/verifyPacked.ts @@ -9,12 +9,12 @@ import { COSEPublicKey as COSEPublicKeyType, } from '@simplewebauthn/typescript-types'; -import convertCOSEtoPKCS from '@helpers/convertCOSEtoPKCS'; -import toHash from '@helpers/toHash'; -import convertASN1toPEM from '@helpers/convertASN1toPEM'; -import getCertificateInfo from '@helpers/getCertificateInfo'; -import verifySignature from '@helpers/verifySignature'; -import parseAuthenticatorData from '@helpers/parseAuthenticatorData'; +import convertCOSEtoPKCS from '../../helpers/convertCOSEtoPKCS'; +import toHash from '../../helpers/toHash'; +import convertASN1toPEM from '../../helpers/convertASN1toPEM'; +import getCertificateInfo from '../../helpers/getCertificateInfo'; +import verifySignature from '../../helpers/verifySignature'; +import parseAuthenticatorData from '../../helpers/parseAuthenticatorData'; /** * Verify an attestation response with fmt 'packed' diff --git a/packages/server/src/attestation/verifyAttestationResponse.ts b/packages/server/src/attestation/verifyAttestationResponse.ts index c531178..e336d2a 100644 --- a/packages/server/src/attestation/verifyAttestationResponse.ts +++ b/packages/server/src/attestation/verifyAttestationResponse.ts @@ -1,5 +1,5 @@ -import decodeAttestationObject from '@helpers/decodeAttestationObject'; -import decodeClientDataJSON from '@helpers/decodeClientDataJSON'; +import decodeAttestationObject from '../helpers/decodeAttestationObject'; +import decodeClientDataJSON from '../helpers/decodeClientDataJSON'; import { ATTESTATION_FORMATS, AuthenticatorAttestationResponseJSON, diff --git a/packages/server/tsconfig.json b/packages/server/tsconfig.json index 5dda000..5559e8f 100644 --- a/packages/server/tsconfig.json +++ b/packages/server/tsconfig.json @@ -3,9 +3,6 @@ "compilerOptions": { "baseUrl": "./src", "outDir": "./dist", - "paths": { - "@helpers/*": ["helpers/*"] - }, "plugins": [ // These replace the path helpers above with relative paths at build time { "transform": "typescript-transform-paths" }, |