Spaces:
Running
Running
Download apps/admin/src/lib/auth-client.ts from Benaah/MicProtocol: direct link, hf CLI and curl.
- Browser
- Download file 279 Bytes
-
https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/apps/admin/src/lib/auth-client.ts
- Command line
-
hf download hf://spaces/Benaah/MicProtocol/apps/admin/src/lib/auth-client.ts
-
curl -L -o auth-client.ts https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/apps/admin/src/lib/auth-client.ts
279 Bytes
| import { createAuthClient } from "better-auth/react"; | |
| export const authClient = createAuthClient({ | |
| baseURL: process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:4000", | |
| fetchOptions: { credentials: "include" }, | |
| }); | |
| export const { signIn, signOut, useSession } = authClient; | |