aboutsummaryrefslogtreecommitdiffstats
path: root/lib/passkey.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-24 13:18:42 -0800
committerAdam Soltys <[email protected]>2026-02-24 13:18:42 -0800
commitad7b09b43323d0ffc0a8ddabb43e4838a184c697 (patch)
treefbf2a59f81771b2938f474c8e7b35a497d2960e4 /lib/passkey.ts
parent9e97e040617bfa0b40150c0eba298bf186bbeeaf (diff)
downloadcoinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.tar.gz
coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.zip
formatting
Diffstat (limited to 'lib/passkey.ts')
-rw-r--r--lib/passkey.ts8
1 files changed, 2 insertions, 6 deletions
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}`);