diff --git a/apps/dokploy/lib/auth-client.ts b/apps/dokploy/lib/auth-client.ts index 9ca1e4ebf..147e94cbf 100644 --- a/apps/dokploy/lib/auth-client.ts +++ b/apps/dokploy/lib/auth-client.ts @@ -1,4 +1,3 @@ -import type { auth } from "@dokploy/server"; import { adminClient, apiKeyClient, @@ -15,6 +14,12 @@ export const authClient = createAuthClient({ twoFactorClient(), apiKeyClient(), adminClient(), - inferAdditionalFields(), + inferAdditionalFields({ + user: { + lastName: { + type: "string", + }, + }, + }), ], }); diff --git a/packages/server/src/lib/auth.ts b/packages/server/src/lib/auth.ts index b51a38af3..f1204596c 100644 --- a/packages/server/src/lib/auth.ts +++ b/packages/server/src/lib/auth.ts @@ -271,14 +271,9 @@ const { handler, api } = betterAuth({ ], }); -export const auth: { - handler: typeof handler; - createApiKey: typeof api.createApiKey; - api: typeof api; -} = { - handler: handler, +export const auth = { + handler, createApiKey: api.createApiKey, - api: api, }; export const validateRequest = async (request: IncomingMessage) => {