summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-07-27 22:15:06 -0700
committerMatthew Miller <matthew@millerti.me>2022-07-27 22:15:06 -0700
commit45a22d6b55d1629bc21e93af2fc8ad72f1fa3a54 (patch)
tree492cb07d7bed10f43cb7fc120c5ebcd5916db62f
parent2e2bf6b83308d7767ec75bce7e0fa7b0c2dc306d (diff)
Export named isBase64URLString()
-rw-r--r--packages/server/src/authentication/verifyAuthenticationResponse.ts2
-rw-r--r--packages/server/src/helpers/index.ts2
-rw-r--r--packages/server/src/helpers/isBase64URLString.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/packages/server/src/authentication/verifyAuthenticationResponse.ts b/packages/server/src/authentication/verifyAuthenticationResponse.ts
index 6161f92..97a837b 100644
--- a/packages/server/src/authentication/verifyAuthenticationResponse.ts
+++ b/packages/server/src/authentication/verifyAuthenticationResponse.ts
@@ -10,7 +10,7 @@ import toHash from '../helpers/toHash';
import { convertPublicKeyToPEM } from '../helpers/convertPublicKeyToPEM';
import verifySignature from '../helpers/verifySignature';
import parseAuthenticatorData from '../helpers/parseAuthenticatorData';
-import isBase64URLString from '../helpers/isBase64URLString';
+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 072e37c..c631bd3 100644
--- a/packages/server/src/helpers/index.ts
+++ b/packages/server/src/helpers/index.ts
@@ -8,7 +8,7 @@ import { decodeClientDataJSON } from './decodeClientDataJSON';
import { decodeCredentialPublicKey } from './decodeCredentialPublicKey';
import { generateChallenge } from './generateChallenge';
import { getCertificateInfo } from './getCertificateInfo';
-import isBase64URLString from './isBase64URLString';
+import { isBase64URLString } from './isBase64URLString';
import isCertRevoked from './isCertRevoked';
import parseAuthenticatorData from './parseAuthenticatorData';
import toHash from './toHash';
diff --git a/packages/server/src/helpers/isBase64URLString.ts b/packages/server/src/helpers/isBase64URLString.ts
index 09a6404..f229bf3 100644
--- a/packages/server/src/helpers/isBase64URLString.ts
+++ b/packages/server/src/helpers/isBase64URLString.ts
@@ -4,7 +4,7 @@ const base64urlRegEx = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z
/**
* Check to see if a string only contains valid Base64URL values
*/
-export default function isBase64URLString(value: string): boolean {
+export function isBase64URLString(value: string): boolean {
if (!value) {
return false;
}