SessionAuthProvider.tsx 378 B

1234567891011121314
  1. 'use client'
  2. import { useSession, signIn, signOut, SessionProvider } from "next-auth/react"
  3. import { type ReactNode } from "react"
  4. import { AuthProvider } from "./AuthProvider"
  5. export function SessionAuthProvider({ children }: { children: ReactNode }) {
  6. return (
  7. <SessionProvider>
  8. <AuthProvider>
  9. {children}
  10. </AuthProvider>
  11. </SessionProvider>
  12. )
  13. }