From 522505c1e70cd57b0b2864610ea4a2c5ae33bb54 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Fri, 9 Jan 2026 20:49:46 +0100 Subject: [PATCH] chore: pr feedbacks --- app/client/modules/auth/routes/login.tsx | 2 +- app/client/modules/settings/routes/settings.tsx | 4 ++-- app/lib/auth.ts | 10 +++++++++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/client/modules/auth/routes/login.tsx b/app/client/modules/auth/routes/login.tsx index 62a52efb..555ce544 100644 --- a/app/client/modules/auth/routes/login.tsx +++ b/app/client/modules/auth/routes/login.tsx @@ -133,7 +133,7 @@ export default function LoginPage() {
- +
{ + onError: ({ error }) => { toast.error("Failed to change password", { - description: error.error.message, + description: error.message, }); }, onRequest: () => { diff --git a/app/lib/auth.ts b/app/lib/auth.ts index 35939000..20631681 100644 --- a/app/lib/auth.ts +++ b/app/lib/auth.ts @@ -46,7 +46,15 @@ const createBetterAuth = (secret: string) => session: { modelName: "sessionsTable", }, - plugins: [username(), twoFactor()], + plugins: [ + username(), + twoFactor({ + backupCodeOptions: { + storeBackupCodes: "encrypted", + amount: 5, + }, + }), + ], advanced: { disableOriginCheck: true, },