'use client' import { createAuthClient } from 'better-auth/react' export const authClient = createAuthClient({ baseURL: process.env.NEXT_PUBLIC_BETTERSTART_AUTH_URL || (typeof window !== 'undefined' ? window.location.origin : ''), basePath: '/api/admin/auth' }) export const { signIn, signUp, signOut, useSession } = authClient