GitHub - get-convex/convex-auth-with-rol...
Here's an entire repo with example code https://github.com/get-convex/convex-auth-with-role-based-permissions
GitHub
A basic example of using Convex Auth with role-based permissions - get-convex/convex-auth-with-role-based-permissions