From 0ec23da8ab3a757fdd8dfbff709f4dd90450f7e7 Mon Sep 17 00:00:00 2001 From: Nicolas Meienberger Date: Tue, 27 Jan 2026 22:48:54 +0100 Subject: [PATCH] fix: use custom cookie prefix --- app/lib/auth.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/lib/auth.ts b/app/lib/auth.ts index b0f1fa71..1cbd1469 100644 --- a/app/lib/auth.ts +++ b/app/lib/auth.ts @@ -23,6 +23,10 @@ const createBetterAuth = (secret: string) => betterAuth({ secret, trustedOrigins: config.trustedOrigins ?? ["*"], + advanced: { + cookiePrefix: "better-auth", + useSecureCookies: false, + }, onAPIError: { throw: true, },