Admin plugin : listUsers total is not correct
Hi,
When using list users the total returned do not take into account the filter clause.
sample:
You should have the total number of admin. As of today, we have the total of all users (admin and user role).
Issue on github : https://github.com/better-auth/better-auth/issues/2108
When using list users the total returned do not take into account the filter clause.
sample:
auth.api.listUsers({
headers: await headers(),
query: {
filterField: "role",
filterOperator: "eq",
filterValue: "admin",
limit: 1,
},
}),You should have the total number of admin. As of today, we have the total of all users (admin and user role).
Issue on github : https://github.com/better-auth/better-auth/issues/2108
GitHub
Is this suited for github? Yes, this is suited for github To Reproduce Hi, When using list users the total returned do not take into account the filter clause. sample: auth.api.listUsers({ headers:...