Last active
October 29, 2023 09:55
-
-
Save thevahidal/38cd3f5eceb6e8bc79b23e5daaffa50e to your computer and use it in GitHub Desktop.
Next.js + Formik + MUI + NextAuth
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 characters
import React, { useState } from "react"; | |
import LoginForm from '../../components/LoginForm' | |
async function getServerSideCsrfToken() | |
{ | |
const csrfToken = await getCsrfToken(); | |
return csrfToken; | |
} | |
export default async function SignIn() { | |
const router = useRouter(); | |
const csrfToken = await getServerSideCsrfToken(); | |
return ( | |
<div> | |
<LoginForm csrfToken={csrfToken} /> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment