diff options
author | Matthew Miller <matthew@millerti.me> | 2022-06-17 23:04:18 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-06-17 23:04:18 -0700 |
commit | 62a0b18a586bdb6ebcc89aefe2b925181003aa3a (patch) | |
tree | 15226788bf06268617ca2082cced9ce8e96fbd7a /packages/browser/src/methods | |
parent | 6b1f531754a2816bc4d0a0ea51543a1c6ba54316 (diff) |
Replace two default exports with named exports
Diffstat (limited to 'packages/browser/src/methods')
-rw-r--r-- | packages/browser/src/methods/startAuthentication.ts | 2 | ||||
-rw-r--r-- | packages/browser/src/methods/startRegistration.ts | 2 |
2 files changed, 2 insertions, 2 deletions
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()) { |