Clerk Authorization vs Authentification

Hey! I'm developing a web app in Nextjs, and using Clerk for user management and authentification. The only problem is that I cant seem to find a way to give different users roles and privileges. I am going to have a customer page, but also an admin page, so these user groups need to have access to different resources. I have looked through the Clerk documentation, but I cannot find anything on it. The only thing I could spot was the ability to add custom user metadata. Is that a good way of assigning roles and privileges? Or is there better way?
1 Reply
Neto
Neto12mo ago
clerk does have two different ways of auth b2b and b2c but either way, you can attach some metadata for a user, his role, and handle that after fetch the clerk user