forked from cartsnitch/app
8b923cd318
Co-Authored-By: Paperclip <noreply@paperclip.ing>
9 lines
259 B
TypeScript
9 lines
259 B
TypeScript
import { createAuthClient } from "better-auth/react"
|
|
|
|
export const authClient = createAuthClient({
|
|
baseURL: import.meta.env.VITE_AUTH_URL ?? "http://localhost:3001",
|
|
basePath: "/auth",
|
|
})
|
|
|
|
export const { useSession, signIn, signUp, signOut } = authClient
|