rsnext/examples/with-supabase-auth-realtime-db/pages/_app.js
Aryan Beezadhur 8eec49208f
Rename utils to lib (#29651)
Rename all instances of `utils` to `lib` in this example to maintain consistency with other examples.
2021-10-05 20:24:19 +00:00

13 lines
355 B
JavaScript

import { Auth } from '@supabase/ui'
import { supabase } from '../lib/initSupabase'
import './../style.css'
export default function MyApp({ Component, pageProps }) {
return (
<main className={'dark'}>
<Auth.UserContextProvider supabaseClient={supabase}>
<Component {...pageProps} />
</Auth.UserContextProvider>
</main>
)
}