How to check permissions on server side

Hello,
I created custom roles and rights and I would like to check permission but if I use auth.api.hasPermission , i cannot use project:["my_right"]
So i tried to use authClient but it doesn't work either.

What should i do ?
Screenshot_from_2025-02-20_20-22-05.png
Screenshot_from_2025-02-20_20-03-41.png
Screenshot_from_2025-02-20_20-03-22.png
Was this page helpful?