refactor(auth): update auth client to use new auth structure and improve type inference

This commit is contained in:
Mauricio Siu
2025-12-07 04:28:35 -06:00
parent 77aff700fd
commit daa54cea8d
2 changed files with 6 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
import type { betterAuthInstance } from "@dokploy/server";
import type { auth } from "@dokploy/server";
import {
adminClient,
apiKeyClient,
@@ -15,6 +15,6 @@ export const authClient = createAuthClient({
twoFactorClient(),
apiKeyClient(),
adminClient(),
inferAdditionalFields<typeof betterAuthInstance>(),
inferAdditionalFields<typeof auth.api>(),
],
});