summaryrefslogtreecommitdiff
path: root/packages/auth/src/client.ts
diff options
context:
space:
mode:
authorHyteq <DerpsDer.es@gmail.com>2025-06-24 11:31:35 +0300
committerHyteq <DerpsDer.es@gmail.com>2025-06-24 11:31:35 +0300
commit3b4577e474a95a16f0b9478ad3eddf50a2ba90eb (patch)
tree928c6fe5bc27ddf4e6ae5f15b0159e11aed52ca6 /packages/auth/src/client.ts
parent30bc2127a2e1fb8368d0e29d5eb755e30dc1485e (diff)
downloadopencut-3b4577e474a95a16f0b9478ad3eddf50a2ba90eb.tar.gz
feat: initial auth package
Diffstat (limited to 'packages/auth/src/client.ts')
-rw-r--r--packages/auth/src/client.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/auth/src/client.ts b/packages/auth/src/client.ts
new file mode 100644
index 00000000..deda3928
--- /dev/null
+++ b/packages/auth/src/client.ts
@@ -0,0 +1,5 @@
+import { createAuthClient } from "better-auth/react";
+
+export const { signIn, signUp, useSession } = createAuthClient({
+ baseURL: process.env.NEXT_PUBLIC_BETTER_AUTH_URL!,
+}); \ No newline at end of file