Files
the-biergarten-app/pages/protected.tsx
2023-02-05 19:27:19 -05:00

17 lines
388 B
TypeScript

import withPageAuthRequired from '@/config/auth/withPageAuthRequired';
import { GetServerSideProps, NextPage } from 'next';
const protectedPage: NextPage<{
username: string;
}> = ({ username }) => {
return (
<div>
<h1> Hello, {username}! </h1>
</div>
);
};
export const getServerSideProps: GetServerSideProps = withPageAuthRequired();
export default protectedPage;