How can I use roles and permissions from the database to manage authorisation using the admin plugin

I have written server functions to fetch roles and permissions from the database and attempted to use them in auth.ts and authClient.ts. But it's not working. Please, anyone can help to fine how I use roles and permissions from database
Was this page helpful?