From c01d7f9626bee7dbf60bb8c6da3c15e6424a7427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 27 Jun 2026 21:55:40 +0200 Subject: [PATCH] chore(auth): drop the unused recovery-code schema export --- public/sw.js | 2 +- src/lib/validations/mfa.ts | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/public/sw.js b/public/sw.js index 069510dbe..e16e622bc 100644 --- a/public/sw.js +++ b/public/sw.js @@ -36,7 +36,7 @@ try { // v1.4.38.4 → v1.4.42. Do not hand-edit; bump `package.json` and rebuild. const CACHE_VERSION = (typeof self !== "undefined" && self.__APP_VERSION__) || - /* @sw-version-fallback */ "v1.22.0"; + /* @sw-version-fallback */ "v1.22.1"; const STATIC_CACHE = `healthlog-static-${CACHE_VERSION}`; const PAGE_CACHE = `healthlog-pages-${CACHE_VERSION}`; // v1.18.6 — read-only data cache for a curated allowlist of safe GET `/api/*` diff --git a/src/lib/validations/mfa.ts b/src/lib/validations/mfa.ts index 6798c5fc3..ca22284b3 100644 --- a/src/lib/validations/mfa.ts +++ b/src/lib/validations/mfa.ts @@ -11,12 +11,6 @@ export const totpCodeSchema = z .trim() .regex(/^\d{6}$/, "Enter the 6-digit code from your authenticator app"); -/** - * A recovery code as displayed (`XXXXX-XXXXX`) — accepted case-insensitively - * with or without the separator; the server normalises before comparing. - */ -export const recoveryCodeSchema = z.string().trim().min(8).max(32); - export const totpConfirmSchema = z.object({ code: totpCodeSchema, });