// This import is only needed when checking authentication status directly from getInitialProps // import auth0 from '../lib/auth0' import { useFetchUser } from "../lib/user"; import Layout from "../components/layout"; function ProfileCard({ user }) { return ( <>

Profile

Profile (client rendered)

user picture

nickname: {user.nickname}

name: {user.name}

); } function Profile() { const { user, loading } = useFetchUser({ required: true }); return ( {loading ? <>Loading... : } ); } export default Profile;