import withPageAuthRequired from '@/config/auth/withPageAuthRequired'; import { GetServerSideProps, NextPage } from 'next'; const protectedPage: NextPage<{ username: string; }> = ({ username }) => { return (

Hello, {username}!

); }; export const getServerSideProps: GetServerSideProps = withPageAuthRequired(); export default protectedPage;