summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-07-27 22:18:00 -0700
committerMatthew Miller <matthew@millerti.me>2022-07-27 22:18:00 -0700
commit026e20486ed181032a1d16cf2307ae0ce70b3b74 (patch)
tree23dea29385f79ece4c01ae52b5b9ebe02eb689c0 /packages/server/src
parentecf301280afa3b71306776c8fa24a6eb95dd4b83 (diff)
Export named generateRegistrationOptions()
Diffstat (limited to 'packages/server/src')
-rw-r--r--packages/server/src/index.ts2
-rw-r--r--packages/server/src/registration/generateRegistrationOptions.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/index.ts b/packages/server/src/index.ts
index daa6861..9af6b08 100644
--- a/packages/server/src/index.ts
+++ b/packages/server/src/index.ts
@@ -2,7 +2,7 @@
* @packageDocumentation
* @module @simplewebauthn/server
*/
-import generateRegistrationOptions from './registration/generateRegistrationOptions';
+import { generateRegistrationOptions } from './registration/generateRegistrationOptions';
import verifyRegistrationResponse from './registration/verifyRegistrationResponse';
import { generateAuthenticationOptions } from './authentication/generateAuthenticationOptions';
import { verifyAuthenticationResponse } from './authentication/verifyAuthenticationResponse';
diff --git a/packages/server/src/registration/generateRegistrationOptions.ts b/packages/server/src/registration/generateRegistrationOptions.ts
index 9fb17b0..d8d0ab5 100644
--- a/packages/server/src/registration/generateRegistrationOptions.ts
+++ b/packages/server/src/registration/generateRegistrationOptions.ts
@@ -93,7 +93,7 @@ const defaultSupportedAlgorithmIDs = supportedCOSEAlgorithmIdentifiers.filter(id
* @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 function generateRegistrationOptions(
+export function generateRegistrationOptions(
options: GenerateRegistrationOptionsOpts,
): PublicKeyCredentialCreationOptionsJSON {
const {