From 00c60b2cdd2927fedfb2341345beafe7f8a90af2 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Thu, 8 Jan 2026 22:01:01 +0100 Subject: [PATCH] chore: fix liniting issues --- app/client/modules/auth/routes/login.tsx | 12 +- .../components/backup-codes-dialog.tsx | 1 - .../components/two-factor-disable-dialog.tsx | 1 - .../components/two-factor-setup-dialog.tsx | 1 - package.json | 230 +++++++++--------- 5 files changed, 123 insertions(+), 122 deletions(-) diff --git a/app/client/modules/auth/routes/login.tsx b/app/client/modules/auth/routes/login.tsx index 1e6a92e6..62a52efb 100644 --- a/app/client/modules/auth/routes/login.tsx +++ b/app/client/modules/auth/routes/login.tsx @@ -90,15 +90,19 @@ export default function LoginPage() { return; } - setIsVerifying2FA(true); - const { data, error } = await authClient.twoFactor.verifyTotp({ code: totpCode, trustDevice, + fetchOptions: { + onRequest: () => { + setIsVerifying2FA(true); + }, + onResponse: () => { + setIsVerifying2FA(false); + }, + }, }); - setIsVerifying2FA(false); - if (error) { console.error(error); toast.error("Verification failed", { description: error.message }); diff --git a/app/client/modules/settings/components/backup-codes-dialog.tsx b/app/client/modules/settings/components/backup-codes-dialog.tsx index eb6b2627..10b2aa64 100644 --- a/app/client/modules/settings/components/backup-codes-dialog.tsx +++ b/app/client/modules/settings/components/backup-codes-dialog.tsx @@ -114,7 +114,6 @@ export const BackupCodesDialog = ({ open, onOpenChange }: BackupCodesDialogProps onChange={(e) => setPassword(e.target.value)} placeholder="Enter your password" required - autoFocus />