listUsers returns status 401 UNAUTHORIZED even though the current user is an admin.
I am using the
Here's the code:
Here are the console logs:
What am I missing?
admin() and adminClient() plugins while testing out better-auth. I am trying to list out the users using the auth client, but I am getting a 401 unauthorized. I've registered a user and manually changed the role to admin in the database. I am using nextjs15Here's the code:
Here are the console logs:
What am I missing?