File size: 279 Bytes
fecff63
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import { createAuthClient } from "better-auth/react";

export const authClient = createAuthClient({
  baseURL: process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:4000",
  fetchOptions: { credentials: "include" },
});

export const { signIn, signOut, useSession } = authClient;