Thank you for the wonderful Better Auth UI components!
Summary
UserManagementTable search input updates the UI state, but user results are not filtered.
This was reproduced with better-auth@1.6.5.
Environment
@bettercone/ui: 0.5.2
better-auth: 1.6.5
- React:
19.2.5
Steps to Reproduce
- Set up
AuthUIProvider with admin plugin enabled.
- Render
UserManagementTable.
- Open the admin page with multiple users.
- Type a unique value into the search box (e.g. part of one user's email).
Actual Behavior
- The table keeps showing all users.
- Network requests to
/api/auth/admin/list-users are sent, but without searchValue in query params in this flow.
- Result remains unfiltered.
Expected Behavior
- Typing in search should send
searchValue (and other search params) correctly.
/api/auth/admin/list-users should return filtered users.
- Table should show filtered results.
Notes
From debugging, this looks related to how authClient.admin.listUsers(...) is called in UserManagementTable for GET endpoints.
With better-auth@1.6.5, passing search params via query works as expected.
Temporary Workaround
We patched authClient.admin.listUsers to normalize:
- from:
listUsers({ searchValue, searchField, ... })
- to:
listUsers({ query: { searchValue, searchField, ... } })
After that, filtering works correctly.
Thank you for the wonderful Better Auth UI components!
Summary
UserManagementTablesearch input updates the UI state, but user results are not filtered.This was reproduced with
better-auth@1.6.5.Environment
@bettercone/ui:0.5.2better-auth:1.6.519.2.5Steps to Reproduce
AuthUIProviderwith admin plugin enabled.UserManagementTable.Actual Behavior
/api/auth/admin/list-usersare sent, but withoutsearchValuein query params in this flow.Expected Behavior
searchValue(and other search params) correctly./api/auth/admin/list-usersshould return filtered users.Notes
From debugging, this looks related to how
authClient.admin.listUsers(...)is called inUserManagementTablefor GET endpoints.With
better-auth@1.6.5, passing search params viaqueryworks as expected.Temporary Workaround
We patched
authClient.admin.listUsersto normalize:listUsers({ searchValue, searchField, ... })listUsers({ query: { searchValue, searchField, ... } })After that, filtering works correctly.