From 62a0b18a586bdb6ebcc89aefe2b925181003aa3a Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Fri, 17 Jun 2022 23:04:18 -0700 Subject: Replace two default exports with named exports --- packages/browser/src/index.ts | 4 ++-- packages/browser/src/methods/startAuthentication.ts | 2 +- packages/browser/src/methods/startRegistration.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/browser/src') diff --git a/packages/browser/src/index.ts b/packages/browser/src/index.ts index 4c83297..dc085d0 100644 --- a/packages/browser/src/index.ts +++ b/packages/browser/src/index.ts @@ -2,8 +2,8 @@ * @packageDocumentation * @module @simplewebauthn/browser */ -import startRegistration from './methods/startRegistration'; -import startAuthentication from './methods/startAuthentication'; +import { startRegistration } from './methods/startRegistration'; +import { startAuthentication } from './methods/startAuthentication'; import { browserSupportsWebauthn } from './helpers/browserSupportsWebauthn'; import { platformAuthenticatorIsAvailable } from './helpers/platformAuthenticatorIsAvailable'; diff --git a/packages/browser/src/methods/startAuthentication.ts b/packages/browser/src/methods/startAuthentication.ts index 6777b45..fd6f9a2 100644 --- a/packages/browser/src/methods/startAuthentication.ts +++ b/packages/browser/src/methods/startAuthentication.ts @@ -20,7 +20,7 @@ import { webauthnAbortService } from '../helpers/webAuthnAbortService'; * @param supportBrowserAutofill Initialize conditional UI to enable logging in via browser * autofill prompts */ -export default async function startAuthentication( +export async function startAuthentication( requestOptionsJSON: PublicKeyCredentialRequestOptionsJSON, supportBrowserAutofill = false, ): Promise { diff --git a/packages/browser/src/methods/startRegistration.ts b/packages/browser/src/methods/startRegistration.ts index 40a3dd9..237744f 100644 --- a/packages/browser/src/methods/startRegistration.ts +++ b/packages/browser/src/methods/startRegistration.ts @@ -17,7 +17,7 @@ import { webauthnAbortService } from '../helpers/webAuthnAbortService'; * * @param creationOptionsJSON Output from @simplewebauthn/server's generateRegistrationOptions(...) */ -export default async function startRegistration( +export async function startRegistration( creationOptionsJSON: PublicKeyCredentialCreationOptionsJSON, ): Promise { if (!browserSupportsWebauthn()) { -- cgit v1.2.3