Fix auth client baseURL — use window.location.origin auto-detect
This commit is contained in:
@@ -4,7 +4,6 @@ import { createAuthClient } from "better-auth/react";
|
|||||||
import { adminClient } from "better-auth/client/plugins";
|
import { adminClient } from "better-auth/client/plugins";
|
||||||
|
|
||||||
export const authClient = createAuthClient({
|
export const authClient = createAuthClient({
|
||||||
baseURL: process.env.NEXT_PUBLIC_APP_URL ?? "http://localhost:3000",
|
|
||||||
plugins: [adminClient()],
|
plugins: [adminClient()],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user