AuthReactRouter Provider
const App = () => { const {isAuthorized, userRoles} = useAuthProvider(); return ( <AuthReactRouter routes={routes} authorized={isAuthorized} roles={userRoles}> <Header /> <Layout> <RoutesRoot /> </Layout> </AuthReactRouter> );} Copy
const App = () => { const {isAuthorized, userRoles} = useAuthProvider(); return ( <AuthReactRouter routes={routes} authorized={isAuthorized} roles={userRoles}> <Header /> <Layout> <RoutesRoot /> </Layout> </AuthReactRouter> );}
Generated using TypeDoc
AuthReactRouter Provider
Example