From ed24d24da269a2c682974ab7a714c823d9c95cf4 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Fri, 24 Apr 2026 23:13:17 +0200 Subject: [PATCH] fix: authentication not working --- src/lib/server/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/server/auth.ts b/src/lib/server/auth.ts index 77048d7..1c989a8 100644 --- a/src/lib/server/auth.ts +++ b/src/lib/server/auth.ts @@ -231,4 +231,4 @@ export const createAuth = (d1: D1Database, baseURL = env.ORIGIN) => * This instance is used by the `better-auth` CLI for schema generation ONLY. * To access `auth` at runtime, use `event.locals.auth`. */ -export const auth = createAuth(null!); +export const auth = createAuth(null!, 'http://localhost');