mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-03-30 12:25:35 +00:00
11 lines
350 B
TypeScript
11 lines
350 B
TypeScript
|
|
import { createAuthClient } from "better-auth/react";
|
||
|
|
import { adminClient } from "better-auth/client/plugins";
|
||
|
|
|
||
|
|
export const authClient = createAuthClient({
|
||
|
|
baseURL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:3000",
|
||
|
|
basePath: "/auth",
|
||
|
|
plugins: [adminClient()],
|
||
|
|
});
|
||
|
|
|
||
|
|
export const { useSession, signIn, signOut, signUp } = authClient;
|