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
1 Reply
Uncaught (in promise) TypeError: _lib_auth_client__WEBPACK_IMPORTED_MODULE_7__.authClient.admin is undefined
I can narrow it down to this error
I have all of this defined