• AuthReactRouter Provider

    Example

    const App = () => {
    const {isAuthorized, userRoles} = useAuthProvider();

    return (
    <AuthReactRouter routes={routes} authorized={isAuthorized} roles={userRoles}>
    <Header />
    <Layout>
    <RoutesRoot />
    </Layout>
    </AuthReactRouter>
    );
    }

    Parameters

    Returns Element

Generated using TypeDoc