Skip to content

Instantly share code, notes, and snippets.

@Nilanth

Nilanth/_app.jsx Secret

Created December 31, 2021 13:43
import '../styles/globals.css'
import {SessionProvider} from "next-auth/react"
import {ThemeProvider} from "next-themes";
export default function App({Component, pageProps: {session, ...pageProps},}) {
return (
<SessionProvider session={session} refetchInterval={5 * 60}>
<ThemeProvider attribute="class" enableSystem={false}>
<Component {...pageProps} />
</ThemeProvider>
</SessionProvider>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment