mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-18 05:47:31 -04:00
22 lines
497 B
TypeScript
22 lines
497 B
TypeScript
import { createAuthClient } from "better-auth/react";
|
|
import {
|
|
twoFactorClient,
|
|
usernameClient,
|
|
adminClient,
|
|
organizationClient,
|
|
inferAdditionalFields,
|
|
} from "better-auth/client/plugins";
|
|
import { ssoClient } from "@better-auth/sso/client";
|
|
import type { auth } from "~/server/lib/auth";
|
|
|
|
export const authClient = createAuthClient({
|
|
plugins: [
|
|
inferAdditionalFields<typeof auth>(),
|
|
usernameClient(),
|
|
adminClient(),
|
|
organizationClient(),
|
|
ssoClient(),
|
|
twoFactorClient(),
|
|
],
|
|
});
|