import { createAuthClient } from "better-auth/client";
import { usernameClient } from "better-auth/client/plugins";
export const authClient = createAuthClient({
    baseURL: `${window.location.origin}/lst/api/auth`, // 👈 This is fine
    callbacks: {
        onUpdate: (session: any) => console.log("Session updated", session),
        onSignIn: (session: any) => console.log("Signed in!", session),
        onSignOut: () => console.log("Signed out!"),
    },
    plugins: [usernameClient()],
});
