✨ first version
CI / test (push) Successful in 5m3s
CI / deploy (push) Failing after 11s
CI / build (push) Successful in 2m41s

This commit is contained in:
2026-08-27 23:20:08 +02:00
parent 55a51a521d
commit 086f94b71f
69 changed files with 12724 additions and 483 deletions
+5 -1
View File
@@ -11,5 +11,9 @@ export const listStaffMembers = createServerFn({ method: 'GET' }).handler(async
query: { sortBy: 'createdAt', sortDirection: 'asc', limit: 100 },
})
return users
// `listUsers`'s return type doesn't pick up `user.additionalFields` from the
// auth config the way the actual response body does — `phone` is present at
// runtime (Better Auth includes every configured additional field on every
// user-returning endpoint) but missing from admin.d.ts's `UserWithRole` type.
return users as Array<(typeof users)[number] & { phone: string | null }>
})