Skip to content

Instantly share code, notes, and snippets.

@Nilanth

Nilanth/_app.jsx Secret

Created December 31, 2021 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nilanth/f6a34c48b197c8a8441525984dcd37b4 to your computer and use it in GitHub Desktop.
Save Nilanth/f6a34c48b197c8a8441525984dcd37b4 to your computer and use it in GitHub Desktop.
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