mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-04 21:45:26 +02:00
refactor(auth): update auth client to use new auth structure and improve type inference
This commit is contained in:
@@ -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>(),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user