Files

16 lines
394 B
JavaScript

"use client";
import { SessionProvider } from "next-auth/react";
export function NextAuthProvider({ children }) {
// Add options to help debug the issue
return (
<SessionProvider
refetchInterval={0} // Disable background refetching during debug
refetchOnWindowFocus={false} // Disable refetching when window gets focus
>
{children}
</SessionProvider>
);
}