Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing types for webauthn event handlers #343

Closed
alexfriesen opened this issue Feb 7, 2025 · 1 comment · Fixed by #344
Closed

missing types for webauthn event handlers #343

alexfriesen opened this issue Feb 7, 2025 · 1 comment · Fixed by #344

Comments

@alexfriesen
Copy link
Contributor

It looks like there has been a regression since v0.5.8 in webauthn event handlers.

defineWebAuthnAuthenticateEventHandler and defineWebAuthnRegisterEventHandler no longer have type support in vscode and running typecheck also fails.

Since Version v0.5.8 the typescript definitions for /nuxt-auth-utils/dist/runtime/server/lib/webauthn/authenticate.d.ts and /nuxt-auth-utils/dist/runtime/server/lib/webauthn/register.d.ts are empty.

Here you can find the content of the authenticate.d.ts:
V0.5.7 /nuxt-auth-utils/dist/runtime/server/lib/webauthn/authenticate.d.ts
V0.5.8 /nuxt-auth-utils/dist/runtime/server/lib/webauthn/authenticate.d.ts

@alexfriesen
Copy link
Contributor Author

when running nuxt-module-build build this output is shown:

src/runtime/server/lib/webauthn/authenticate.ts(11,17): error TS2742: The inferred type of 'defineWebAuthnAuthenticateEventHandler' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@simplewebauthn/types'. This is likely not portable. A type annotation is necessary.
src/runtime/server/lib/webauthn/register.ts(12,17): error TS2742: The inferred type of 'defineWebAuthnRegisterEventHandler' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@simplewebauthn/types'. This is likely not portable. A type annotation is necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant