8 lines
341 B
TypeScript
8 lines
341 B
TypeScript
import { createAuthClient } from "better-auth/react";
|
|
import { 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()],
|
|
});
|