2026-09-19 21:10:44 +07:00
|
|
|
import { createAuthClient } from "better-auth/react";
|
|
|
|
|
|
|
|
|
|
export const authClient = createAuthClient({
|
|
|
|
|
baseURL: process.env.NEXT_PUBLIC_BETTER_AUTH_URL ?? "http://localhost:3000",
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export const { useSession, signIn, signUp, signOut } = authClient;
|