which should be only accessible for "admin" role users. If the user have "user" role, they should be redirected to the home page. Also I'd followed the docs, but I don't know how to make the
/sign-in
/sign-in
route inaccessible for those who are already signed in.
Later I'd like more complex role based access control for routes. How to achieve this?