Created
September 23, 2022 15:08
-
-
Save meetbryce/f6904aa802364fe7d7a5bd0e38322629 to your computer and use it in GitHub Desktop.
Revisions
-
meetbryce created this gist
Sep 23, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ import {NextPage} from 'next'; import styles from '../styles/Home.module.css'; import Meta from '../components/Meta'; import Header from '../components/Header'; import Footer from '../components/Footer'; import {withPageAuth} from '@supabase/auth-helpers-nextjs'; export const getServerSideProps = withPageAuth({redirectTo: '/login'}); const Profile: NextPage = ({user}) => { return ( <div className={styles.container}> <Meta titlePrefix={`Login`} description={'todo'}></Meta> <Header /> <main className={styles.main}> <h1 className={styles.title}>Welcome back!</h1> <p> <pre>{JSON.stringify(user)}</pre> </p> </main> <Footer /> </div> ); }; export default Profile;