Skip to content

Commit

Permalink
fix: auto import
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerbuuun committed Aug 27, 2024
1 parent 59b7fca commit 57d0488
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion playground/server/api/passkey/login.post.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { base64URLStringToBuffer, bufferToBase64URLString } from '@simplewebauthn/browser'
import { getRandomValues } from 'uncrypto'
import type { AuthenticatorTransportFuture, PublicKeyCredentialRequestOptionsJSON } from '@simplewebauthn/types'
import definePasskeyAuthenticationEventHandler from '../../../../src/runtime/server/lib/webauthn/authenticate' // FIXME: autoimport

interface PasskeyData {
id: string
Expand Down
1 change: 0 additions & 1 deletion playground/server/api/passkey/register.post.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { bufferToBase64URLString } from '@simplewebauthn/browser'
import { getRandomValues } from 'uncrypto'
import type { PublicKeyCredentialCreationOptionsJSON } from '@simplewebauthn/types'
import definePasskeyRegistrationEventHandler from '../../../../src/runtime/server/lib/webauthn/register' // FIXME: autoimport

export default definePasskeyRegistrationEventHandler({
storeChallenge: async (event, options) => {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/server/lib/webauthn/authenticate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface PasskeyAuthenticationEventHandlerOptions {
onError?: (event: H3Event, error: H3Error) => void | Promise<void>
}

export default function definePasskeyAuthenticationEventHandler({
export function definePasskeyAuthenticationEventHandler({
storeChallenge,
getChallenge,
onSuccces,
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/server/lib/webauthn/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface PasskeyRegistrationEventHandlerOptions {
onError?: (event: H3Event, error: H3Error) => void | Promise<void>
}

export default function definePasskeyRegistrationEventHandler({
export function definePasskeyRegistrationEventHandler({
storeChallenge,
getChallenge,
onSuccces,
Expand Down

0 comments on commit 57d0488

Please sign in to comment.