Admin panel for VinEye with dashboard, users, diseases, guides, alerts management. Stack: Next.js App Router + Prisma + PostgreSQL + better-auth. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
10 lines
258 B
TypeScript
10 lines
258 B
TypeScript
"use client";
|
|
|
|
import { createAuthClient } from "better-auth/react";
|
|
|
|
export const authClient = createAuthClient({
|
|
baseURL: process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000",
|
|
});
|
|
|
|
export const { signIn, signUp, signOut, useSession } = authClient;
|