import { useWebAuth } from "@code/auth/web"; import { Navigate, Outlet, useLocation } from "react-router"; export default function AppLayout() { const auth = useWebAuth(); const location = useLocation(); if (auth.status === "loading") { return (
Loading…
); } if (auth.status === "inconsistent") { return (
Your session could not be verified
); } if (auth.status === "unauthenticated") { return ; } return ; }