We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 316204e commit 0fd48fdCopy full SHA for 0fd48fd
lib/auth-client.ts
@@ -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