mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-19 14:15:21 +02:00
26 lines
505 B
TypeScript
26 lines
505 B
TypeScript
import {
|
|
adminClient,
|
|
apiKeyClient,
|
|
inferAdditionalFields,
|
|
organizationClient,
|
|
twoFactorClient,
|
|
} from "better-auth/client/plugins";
|
|
import { createAuthClient } from "better-auth/react";
|
|
|
|
export const authClient = createAuthClient({
|
|
// baseURL: "http://localhost:3000", // the base url of your auth server
|
|
plugins: [
|
|
organizationClient(),
|
|
twoFactorClient(),
|
|
apiKeyClient(),
|
|
adminClient(),
|
|
inferAdditionalFields({
|
|
user: {
|
|
lastName: {
|
|
type: "string",
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
});
|