zerobyte/app/client/lib/auth-client.ts
2026-01-09 18:40:05 +01:00

8 lines
377 B
TypeScript

import { createAuthClient } from "better-auth/react";
import { twoFactorClient, usernameClient } from "better-auth/client/plugins";
import { inferAdditionalFields } from "better-auth/client/plugins";
import type { auth } from "~/lib/auth";
export const authClient = createAuthClient({
plugins: [inferAdditionalFields<typeof auth>(), usernameClient(), twoFactorClient()],
});