mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-09-13 18:59:25 +00:00
13 lines
330 B
TypeScript
13 lines
330 B
TypeScript
import { adminClient } from "better-auth/client/plugins";
|
|
import { createAuthClient } from "better-auth/react";
|
|
|
|
export const authClient = createAuthClient({
|
|
basePath: "/auth",
|
|
plugins: [adminClient()],
|
|
fetchOptions: {
|
|
credentials: "include",
|
|
},
|
|
});
|
|
|
|
export const { useSession, signIn, signOut, signUp } = authClient;
|