mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-25 00:55:30 +02:00
28 lines
618 B
TypeScript
28 lines
618 B
TypeScript
import { ssoClient } from "@better-auth/sso/client";
|
|
import { apiKeyClient } from "@better-auth/api-key/client";
|
|
import {
|
|
adminClient,
|
|
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(),
|
|
ssoClient(),
|
|
adminClient(),
|
|
inferAdditionalFields({
|
|
user: {
|
|
lastName: {
|
|
type: "string",
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
});
|