From ad7b09b43323d0ffc0a8ddabb43e4838a184c697 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 24 Feb 2026 13:18:42 -0800 Subject: formatting --- lib/passkey.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/passkey.ts') diff --git a/lib/passkey.ts b/lib/passkey.ts index b2cb96b4..29b9b095 100644 --- a/lib/passkey.ts +++ b/lib/passkey.ts @@ -4,9 +4,7 @@ import { generateAuthenticationOptions, verifyAuthenticationResponse, } from "@simplewebauthn/server"; -import type { - AuthenticatorTransportFuture, -} from "@simplewebauthn/types"; +import type { AuthenticatorTransportFuture } from "@simplewebauthn/types"; import { db, g, s } from "$lib/db"; import { fail, getUser } from "$lib/utils"; import { v4 } from "uuid"; @@ -102,9 +100,7 @@ export async function verifyPasskeyLogin(response: any, challengeId: string, ori if (!user) fail("User not found"); const passkeys = user.passkeys || []; - const passkey = passkeys.find( - (p: any) => p.credentialID === response.id, - ); + const passkey = passkeys.find((p: any) => p.credentialID === response.id); if (!passkey) fail("Passkey not found"); const expectedChallenge = await db.get(`challenge:passkey:${challengeId}`); -- cgit v1.2.3