generated from pure_sagacity/turborepo-starter-project
12 lines
388 B
TypeScript
12 lines
388 B
TypeScript
import { createAuthClient } from "better-auth/client";
|
|
import { adminClient } from "better-auth/client/plugins";
|
|
import { passkeyClient } from "@better-auth/passkey/client";
|
|
|
|
export const authClient = createAuthClient({
|
|
baseURL: process.env.NEXT_PUBLIC_API_URL || "http://localhost:3000",
|
|
basePath: "/auth",
|
|
plugins: [
|
|
adminClient(),
|
|
passkeyClient(),
|
|
],
|
|
}) |