Initial commit
This commit is contained in:
9
lib/auth-client.ts
Normal file
9
lib/auth-client.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
|
||||
const baseURL = typeof window !== "undefined" ? window.location.origin : "http://localhost:3001";
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: baseURL,
|
||||
});
|
||||
|
||||
export const { signUp, signIn, signOut, useSession } = authClient;
|
||||
Reference in New Issue
Block a user