diff options
author | Matthew Miller <matthew@millerti.me> | 2022-07-27 22:18:10 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-07-27 22:18:10 -0700 |
commit | 2c267f0d22e111c4b73441104f083ed6086cc7ce (patch) | |
tree | 50b2dbbba08dc1bdf02ce5eddfd7789e49cb003e /packages/server/src | |
parent | 026e20486ed181032a1d16cf2307ae0ce70b3b74 (diff) |
Export named verifyRegistrationResponse()
Diffstat (limited to 'packages/server/src')
-rw-r--r-- | packages/server/src/index.ts | 2 | ||||
-rw-r--r-- | packages/server/src/registration/verifyRegistrationResponse.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts index 9af6b08..a2ad8d5 100644 --- a/packages/server/src/index.ts +++ b/packages/server/src/index.ts @@ -3,7 +3,7 @@ * @module @simplewebauthn/server */ import { generateRegistrationOptions } from './registration/generateRegistrationOptions'; -import verifyRegistrationResponse from './registration/verifyRegistrationResponse'; +import { verifyRegistrationResponse } from './registration/verifyRegistrationResponse'; import { generateAuthenticationOptions } from './authentication/generateAuthenticationOptions'; import { verifyAuthenticationResponse } from './authentication/verifyAuthenticationResponse'; import MetadataService from './services/metadataService'; diff --git a/packages/server/src/registration/verifyRegistrationResponse.ts b/packages/server/src/registration/verifyRegistrationResponse.ts index 9935633..374b854 100644 --- a/packages/server/src/registration/verifyRegistrationResponse.ts +++ b/packages/server/src/registration/verifyRegistrationResponse.ts @@ -52,7 +52,7 @@ export type VerifyRegistrationResponseOpts = { * @param supportedAlgorithmIDs Array of numeric COSE algorithm identifiers supported for * attestation by this RP. See https://www.iana.org/assignments/cose/cose.xhtml#algorithms */ -export default async function verifyRegistrationResponse( +export async function verifyRegistrationResponse( options: VerifyRegistrationResponseOpts, ): Promise<VerifiedRegistrationResponse> { const { |