summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src')
-rw-r--r--packages/server/src/authentication/verifyAuthenticationResponse.ts2
-rw-r--r--packages/server/src/helpers/decodeClientDataJSON.ts2
-rw-r--r--packages/server/src/helpers/index.ts2
-rw-r--r--packages/server/src/registration/verifyRegistrationResponse.ts2
4 files changed, 4 insertions, 4 deletions
diff --git a/packages/server/src/authentication/verifyAuthenticationResponse.ts b/packages/server/src/authentication/verifyAuthenticationResponse.ts
index d861f71..6161f92 100644
--- a/packages/server/src/authentication/verifyAuthenticationResponse.ts
+++ b/packages/server/src/authentication/verifyAuthenticationResponse.ts
@@ -5,7 +5,7 @@ import {
CredentialDeviceType,
} from '@simplewebauthn/typescript-types';
-import decodeClientDataJSON from '../helpers/decodeClientDataJSON';
+import { decodeClientDataJSON } from '../helpers/decodeClientDataJSON';
import toHash from '../helpers/toHash';
import { convertPublicKeyToPEM } from '../helpers/convertPublicKeyToPEM';
import verifySignature from '../helpers/verifySignature';
diff --git a/packages/server/src/helpers/decodeClientDataJSON.ts b/packages/server/src/helpers/decodeClientDataJSON.ts
index 40ce0c0..b3094db 100644
--- a/packages/server/src/helpers/decodeClientDataJSON.ts
+++ b/packages/server/src/helpers/decodeClientDataJSON.ts
@@ -3,7 +3,7 @@ import base64url from 'base64url';
/**
* Decode an authenticator's base64url-encoded clientDataJSON to JSON
*/
-export default function decodeClientDataJSON(data: string): ClientDataJSON {
+export function decodeClientDataJSON(data: string): ClientDataJSON {
const toString = base64url.decode(data);
const clientData: ClientDataJSON = JSON.parse(toString);
diff --git a/packages/server/src/helpers/index.ts b/packages/server/src/helpers/index.ts
index c157d7e..1a121f1 100644
--- a/packages/server/src/helpers/index.ts
+++ b/packages/server/src/helpers/index.ts
@@ -4,7 +4,7 @@ import { convertCOSEtoPKCS } from './convertCOSEtoPKCS';
import { convertPublicKeyToPEM } from './convertPublicKeyToPEM';
import { decodeAttestationObject } from './decodeAttestationObject';
import { decodeCborFirst } from './decodeCbor';
-import decodeClientDataJSON from './decodeClientDataJSON';
+import { decodeClientDataJSON } from './decodeClientDataJSON';
import decodeCredentialPublicKey from './decodeCredentialPublicKey';
import generateChallenge from './generateChallenge';
import getCertificateInfo from './getCertificateInfo';
diff --git a/packages/server/src/registration/verifyRegistrationResponse.ts b/packages/server/src/registration/verifyRegistrationResponse.ts
index 62a1e39..6192949 100644
--- a/packages/server/src/registration/verifyRegistrationResponse.ts
+++ b/packages/server/src/registration/verifyRegistrationResponse.ts
@@ -11,7 +11,7 @@ import {
decodeAttestationObject,
} from '../helpers/decodeAttestationObject';
import { AuthenticationExtensionsAuthenticatorOutputs } from '../helpers/decodeAuthenticatorExtensions';
-import decodeClientDataJSON from '../helpers/decodeClientDataJSON';
+import { decodeClientDataJSON } from '../helpers/decodeClientDataJSON';
import parseAuthenticatorData from '../helpers/parseAuthenticatorData';
import toHash from '../helpers/toHash';
import decodeCredentialPublicKey from '../helpers/decodeCredentialPublicKey';