summary refs log tree commit diff
path: root/src/api/routes/users/@me/mfa/webauthn
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-10-15 08:04:23 +0200
committerRory& <root@rory.gay>2025-10-15 08:04:23 +0200
commite52c2373264c9c0735107fe06cea515a2b1cf1a0 (patch)
tree9c2109662f62c378f169e3388c35740d6b5252e5 /src/api/routes/users/@me/mfa/webauthn
parentMove schemas to separate module (diff)
downloadserver-ts-e52c2373264c9c0735107fe06cea515a2b1cf1a0.tar.xz
Reorganise schemas a little bit
Diffstat (limited to 'src/api/routes/users/@me/mfa/webauthn')
-rw-r--r--src/api/routes/users/@me/mfa/webauthn/credentials/index.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts b/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts

index 78c7470d..1225cd34 100644 --- a/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts +++ b/src/api/routes/users/@me/mfa/webauthn/credentials/index.ts
@@ -18,21 +18,19 @@ import { route } from "@spacebar/api"; import { - CreateWebAuthnCredentialSchema, DiscordApiErrors, FieldErrors, - GenerateWebAuthnCredentialsSchema, generateWebAuthnTicket, SecurityKey, User, verifyWebAuthnToken, WebAuthn, - WebAuthnPostSchema, } from "@spacebar/util"; import bcrypt from "bcrypt"; import { Request, Response, Router } from "express"; import { ExpectedAttestationResult } from "fido2-lib"; import { HTTPError } from "lambert-server"; +import { CreateWebAuthnCredentialSchema, GenerateWebAuthnCredentialsSchema, WebAuthnPostSchema } from "@spacebar/schemas" const router = Router({ mergeParams: true }); const isGenerateSchema = (