Admin route not working
Unanswered
Brown bear posted this in #help-forum
Brown bearOP
When a user is authenticated, he should be able to visit all the different routes. But if the user is admin then he should also be able to visit the admin route. If I use raw token, then everything is working correctly but the admin is not able to route to the admin page and if I'm not using it raw then no user (including admin) is not able to visit or get redirected to any other route.
I'm attaching the code images of middlware.js, lib/auth.config.js and components/navbar/links/links.jsx
I'm attaching the code images of middlware.js, lib/auth.config.js and components/navbar/links/links.jsx