Skip to content

Commit 0fd48fd

Browse files
committed
add auth client
1 parent 316204e commit 0fd48fd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/auth-client.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { createAuthClient } from "better-auth/react";
2+
3+
export const authClient = createAuthClient({
4+
baseURL: process.env.NEXT_PUBLIC_BETTER_AUTH_URL || "http://localhost:3000",
5+
});
6+
7+
// You can also export specific methods if you prefer
8+
export const { signIn, signOut, useSession } = authClient;

0 commit comments

Comments
 (0)