summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/browser/src')
-rw-r--r--packages/browser/src/index.ts4
-rw-r--r--packages/browser/src/methods/startAuthentication.ts2
-rw-r--r--packages/browser/src/methods/startRegistration.ts2
3 files changed, 4 insertions, 4 deletions
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<AuthenticationCredentialJSON> {
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<RegistrationCredentialJSON> {
if (!browserSupportsWebauthn()) {