yagizfreezenight
08/19/2023, 4:45 PMjsx
<Route
path="/category"
element={
/* This protects the "/" route so that it shows
<Home /> only if the user is logged in.
Else it redirects the user to "/auth" */
<SessionAuth accessDeniedScreen={<Home></Home>} overrideGlobalClaimValidators={(globalValidators) => [
...globalValidators, PermissionClaim.validators.includes("read:category"),
]
} >
<SideBar>
<Category ></Category>
</SideBar>
</SessionAuth>
}
/>