🐛 fix: proxy requests through the web origin

This commit is contained in:
2026-08-13 02:19:14 +07:00
parent 1742f7321d
commit 83e52af412
7 changed files with 34 additions and 13 deletions
+3 -1
View File
@@ -2,9 +2,11 @@ import { adminClient } from "better-auth/client/plugins";
import { createAuthClient } from "better-auth/react";
export const authClient = createAuthClient({
baseURL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:3000",
basePath: "/auth",
plugins: [adminClient()],
fetchOptions: {
credentials: "include",
},
});
export const { useSession, signIn, signOut, signUp } = authClient;