From 24a06dd8ca619c948c50607eb86366b8d8ec953c Mon Sep 17 00:00:00 2001 From: Owen Date: Tue, 15 Sep 2026 10:25:06 -0400 Subject: [PATCH] Rename package import --- server/routers/auth/securityKey.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/routers/auth/securityKey.ts b/server/routers/auth/securityKey.ts index 74ec2a710..906474e9b 100644 --- a/server/routers/auth/securityKey.ts +++ b/server/routers/auth/securityKey.ts @@ -17,7 +17,7 @@ import { import type { GenerateRegistrationOptionsOpts, GenerateAuthenticationOptionsOpts, - AuthenticatorTransportFuture + AuthenticatorTransport } from "@simplewebauthn/server"; import { isoBase64URL } from "@simplewebauthn/server/helpers"; import config from "@server/lib/config"; @@ -221,7 +221,7 @@ export async function startRegistration( const excludeCredentials = existingSecurityKeys.map((key) => ({ id: key.credentialId, transports: key.transports - ? (JSON.parse(key.transports) as AuthenticatorTransportFuture[]) + ? (JSON.parse(key.transports) as AuthenticatorTransport[]) : undefined })); @@ -571,7 +571,7 @@ export async function startAuthentication( transports: key.transports ? (JSON.parse( key.transports - ) as AuthenticatorTransportFuture[]) + ) as AuthenticatorTransport[]) : undefined })); } @@ -702,7 +702,7 @@ export async function verifyAuthentication( transports: securityKey.transports ? (JSON.parse( securityKey.transports - ) as AuthenticatorTransportFuture[]) + ) as AuthenticatorTransport[]) : undefined }, requireUserVerification: false