mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
17 lines
388 B
TypeScript
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;
|