mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-02-23 01:48:55 -05:00
* refactor: move migrations to new structure * refactor: convert all findMany to new structure * fix(backups-schedule): missing null matching for last backup status * chore: move root lib to server
15 lines
468 B
TypeScript
15 lines
468 B
TypeScript
import { createAuthClient } from "better-auth/react";
|
|
import { twoFactorClient, usernameClient, adminClient, organizationClient } from "better-auth/client/plugins";
|
|
import { inferAdditionalFields } from "better-auth/client/plugins";
|
|
import type { auth } from "~/server/lib/auth";
|
|
|
|
export const authClient = createAuthClient({
|
|
plugins: [
|
|
inferAdditionalFields<typeof auth>(),
|
|
usernameClient(),
|
|
adminClient(),
|
|
organizationClient(),
|
|
twoFactorClient(),
|
|
],
|
|
});
|