Created
February 5, 2022 10:46
-
-
Save yathindrak/0b2f42c00f12cb3b7a96dfcd0939db3d to your computer and use it in GitHub Desktop.
NextAuth Provider
This file contains 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 { NavBar } from '../components/NavBar' | |
import { SessionProvider } from "next-auth/react" | |
import '../styles/globals.css' | |
function MyApp({ Component, pageProps }) { | |
return ( | |
<SessionProvider session={pageProps?.session}> | |
<NavBar /> | |
<Component {...pageProps} /> | |
</SessionProvider> | |
) | |
} | |
export default MyApp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment