Fix auth client baseURL — use window.location.origin auto-detect

This commit is contained in:
2026-04-07 11:01:49 +05:00
parent e1d24cef96
commit c3aefa8a0f
-1
View File
@@ -4,7 +4,6 @@ import { createAuthClient } from "better-auth/react";
import { adminClient } from "better-auth/client/plugins";
export const authClient = createAuthClient({
baseURL: process.env.NEXT_PUBLIC_APP_URL ?? "http://localhost:3000",
plugins: [adminClient()],
});