fix: route web auth through same origin
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { env } from "@code/env/web";
|
||||
import { convexClient } from "@convex-dev/better-auth/client/plugins";
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: env.VITE_AUTH_URL,
|
||||
baseURL: typeof window === "undefined" ? undefined : window.location.origin,
|
||||
plugins: [convexClient()],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user