mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-01 20:15:29 +02:00
refactor(auth): update auth client to enhance type inference for user fields in auth structure
This commit is contained in:
@@ -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<typeof auth.api>(),
|
||||
inferAdditionalFields({
|
||||
user: {
|
||||
lastName: {
|
||||
type: "string",
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user