zor
zor•5mo ago

Are there any examples of best security practices for implementing role-based access control (RBAC)

Are there any examples of best security practices for implementing role-based access control (RBAC) when making requests in a Next.js application using Clerk for authentication and Convex as the backend? Specifically, how should server-side validation be approached?
6 Replies
zor
zorOP•5mo ago
Not necessarily Clerk. Assume any auth Am I just supposed to use simply useQuery and not think much?
Eva
Eva•5mo ago
Also interested in the answer to this 💜
jamwt
jamwt•5mo ago
jamwt
jamwt•5mo ago
in general, convex helpers with customQuery and customMutation are the building blocks for enforcing access controls
jamwt
jamwt•5mo ago
Customizing serverless functions without middleware
Re-use code and centralize request handler definitions with discoverability and type safety and without the indirection of middleware or nesting of wr...
jamwt
jamwt•5mo ago
and then that github link shows implementing RLS using this method

Did you find this page helpful?