Getting FORBIDDEN (403) error when using authClient.admin
Auth config:
Calling this code to change role
It also happens when creating a new user. The solution for now is call this functions server side but it would be nice if this works well.
I'm logged as an ADMIN and the response is:

14 Replies
I'm using @casl to RBAC:
This is my code on TRPC, but keeps getting the same error.
The response

Is Role an enum?
Is generated from Prisma

Hey @Arthur Mendes I found the issue.
It's an internal bug. I'll fix it, open a PR, then send the URL here for you to track.
Solution
Nice, thank you so much!
@Ping I tried
yarn add better-auth@latest
but I doesn't fixed yet. Do i have to do something else?It might not be in latest release yet.
Sorry about my english, I'm Brazilian.
No you're fine.
Ok, how can I get notified when it's released?
Keep track of this channel: #releases
When we release, a new message will appear with the version number.
Great, appreciate it!