summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-07-27 22:11:22 -0700
committerMatthew Miller <matthew@millerti.me>2022-07-27 22:11:22 -0700
commitdf183cd36ab29d72b6c65c871ff87bcc51e5957b (patch)
tree090599c2f2a3daa473e5dfc92045a9d0a2633009
parent77c6942aa673c019715bd6dbf9c92264630fc85a (diff)
Export named verifyAuthenticationResponse()
-rw-r--r--packages/server/src/authentication/verifyAuthenticationResponse.ts2
-rw-r--r--packages/server/src/index.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/authentication/verifyAuthenticationResponse.ts b/packages/server/src/authentication/verifyAuthenticationResponse.ts
index ebc1dca..227b0f1 100644
--- a/packages/server/src/authentication/verifyAuthenticationResponse.ts
+++ b/packages/server/src/authentication/verifyAuthenticationResponse.ts
@@ -37,7 +37,7 @@ export type VerifyAuthenticationResponseOpts = {
* @param requireUserVerification (Optional) Enforce user verification by the authenticator
* (via PIN, fingerprint, etc...)
*/
-export default function verifyAuthenticationResponse(
+export function verifyAuthenticationResponse(
options: VerifyAuthenticationResponseOpts,
): VerifiedAuthenticationResponse {
const {
diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts
index 19473f5..daa6861 100644
--- a/packages/server/src/index.ts
+++ b/packages/server/src/index.ts
@@ -5,7 +5,7 @@
import generateRegistrationOptions from './registration/generateRegistrationOptions';
import verifyRegistrationResponse from './registration/verifyRegistrationResponse';
import { generateAuthenticationOptions } from './authentication/generateAuthenticationOptions';
-import verifyAuthenticationResponse from './authentication/verifyAuthenticationResponse';
+import { verifyAuthenticationResponse } from './authentication/verifyAuthenticationResponse';
import MetadataService from './services/metadataService';
import SettingsService from './services/settingsService';