Role-based access control (RBAC) in Next.js when used only as the front-end
Unanswered
Northeast Congo Lion posted this in #help-forum

Northeast Congo LionOP
What is the best way to implement to role-based access control in the latest version of Next.js? Previously, I worked with Next.js 12 and used a higher-order component to handle this in the page router. But with the latest version of React.js and Next.js, is there a better way to do it? For my backend, I am planning to use NestJS for a movie/series watchlist and review site and JWT authentication.
1 Reply

Recently i used parallel routing
check this out
https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#conditional-routes
check this out
https://nextjs.org/docs/app/building-your-application/routing/parallel-routes#conditional-routes