16 lines
374 B
TypeScript
16 lines
374 B
TypeScript
"use client";
|
|
|
|
import { SessionProvider } from "next-auth/react";
|
|
import { authOptions } from "@/lib/auth";
|
|
|
|
interface ProvidersProps {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export function Providers({ children }: ProvidersProps) {
|
|
return (
|
|
<SessionProvider session={null} refetchInterval={5 * 60} refetchOnWindowFocus={true}>
|
|
{children}
|
|
</SessionProvider>
|
|
);
|
|
}
|