mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
16 lines
394 B
JavaScript
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>
|
|
);
|
|
}
|