mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* chore: dev -> dev/nextjs * chore: move to /examples * chore: move to playgrounds, add dev/sveltekit * Update sync.yml * chore: dev scripts
19 lines
545 B
TypeScript
19 lines
545 B
TypeScript
import { SessionProvider } from "next-auth/react"
|
|
import "./styles.css"
|
|
|
|
import type { AppProps } from "next/app"
|
|
import type { Session } from "next-auth"
|
|
|
|
// Use of the <SessionProvider> is mandatory to allow components that call
|
|
// `useSession()` anywhere in your application to access the `session` object.
|
|
export default function App({
|
|
Component,
|
|
pageProps: { session, ...pageProps },
|
|
}: AppProps<{ session: Session }>) {
|
|
return (
|
|
<SessionProvider session={session}>
|
|
<Component {...pageProps} />
|
|
</SessionProvider>
|
|
)
|
|
}
|