iamyogess
iamyogess
CCConvex Community
Created by iamyogess on 2/24/2025 in #support-community
What is the recommended method for implementing role-based route protection within Next.js?
What is the recommended method for implementing role-based route protection within Next.js middleware? I am able to protect routes using convexAuth.isAuthenticated, but how do I extend this to protect routes based on 'read', 'write', and 'admin' roles?
2 replies