Cant get listUsers in the admin plugin to work
const usersQuery = useQuery({
queryKey: ["users"],
queryFn: async () => {
return await authClient.admin.listUsers({
query: { limit: 10 },
});
},
});
im just trying to do this. But it doesnt return anything at all.
Im using it within a client component
queryKey: ["users"],
queryFn: async () => {
return await authClient.admin.listUsers({
query: { limit: 10 },
});
},
});
im just trying to do this. But it doesnt return anything at all.
Im using it within a client component