diff --git a/web/app/auth-actions.ts b/web/app/auth-actions.ts index 948185e..4439d7a 100644 --- a/web/app/auth-actions.ts +++ b/web/app/auth-actions.ts @@ -8,9 +8,11 @@ import { generateRegistrationOptions, verifyAuthenticationResponse, verifyRegistrationResponse, - type AuthenticationResponseJSON, - type RegistrationResponseJSON, } from "@simplewebauthn/server"; +import type { + AuthenticationResponseJSON, + RegistrationResponseJSON, +} from "@simplewebauthn/types"; import { getSession, setSession, diff --git a/web/lib/auth-store.ts b/web/lib/auth-store.ts index d21f1f1..7f6f845 100644 --- a/web/lib/auth-store.ts +++ b/web/lib/auth-store.ts @@ -1,7 +1,7 @@ import "server-only"; import { promises as fs } from "node:fs"; import path from "node:path"; -import type { AuthenticatorTransportFuture } from "@simplewebauthn/server"; +import type { AuthenticatorTransportFuture } from "@simplewebauthn/types"; const FILE_PATH = process.env.CM_AUTH_STORE_PATH ?? "/data/auth/passkeys.json"; diff --git a/web/package.json b/web/package.json index 2e77672..bdfe441 100644 --- a/web/package.json +++ b/web/package.json @@ -11,6 +11,7 @@ "dependencies": { "@simplewebauthn/browser": "^11.0.0", "@simplewebauthn/server": "^11.0.0", + "@simplewebauthn/types": "^11.0.0", "iron-session": "^8.0.0", "next": "15.1.0", "react": "19.0.0",