Auth0 working!

This commit is contained in:
2022-05-11 09:23:32 -05:00
parent 002c6a2f3d
commit 4c37658cd8
14 changed files with 782 additions and 74 deletions

19
web/pages/about.js Normal file
View File

@@ -0,0 +1,19 @@
import Layout from "../components/layout";
import { useFetchUser } from "../lib/user";
function About() {
const { user, loading } = useFetchUser();
return (
<Layout user={user} loading={loading}>
<h1>About</h1>
<p>
This is the about page, navigating between this page and <i>Home</i> is
always pretty fast. However, when you navigate to the <i>Profile</i>{" "}
page it takes more time because it uses SSR to fetch the user first;
</p>
</Layout>
);
}
export default About;