Merge pull request #11345 from AndreJones216/patch-1

Update with-nextjs.mdx
This commit is contained in:
Alaister Young authored and GitHub committed 2022-12-31 04:39:48 +11:00
commit 19ba397ef2
1 file changed
+1
@@ -106,6 +106,7 @@ Wrap your `pages/_app.js` component with the `SessionContextProvider` component:
import '../styles/globals.css'
import { createBrowserSupabaseClient } from '@supabase/auth-helpers-nextjs'
import { SessionContextProvider } from '@supabase/auth-helpers-react'
import { useState } from 'react'
function MyApp({ Component, pageProps }) {
const [supabase] = useState(() => createBrowserSupabaseClient())