mirror of
https://github.com/mudabbir-ahmad/peworkshop.git
synced 2026-10-07 19:50:20 +00:00
fixed issue with login that keeps returning.
This commit is contained in:
1 parent
ea38775a82
commit
11fc5c8b3d
5 files changed
+392
-142
No files matched your search
+10
-1
@@ -3,5 +3,14 @@
|
||||
import { SessionProvider } from "next-auth/react";
|
||||
|
||||
export function NextAuthProvider({ children }) {
|
||||
return <SessionProvider>{children}</SessionProvider>;
|
||||
return (
|
||||
<SessionProvider
|
||||
// Options to make session more reliable
|
||||
refetchInterval={5 * 60} // Refetch session every 5 minutes (in seconds)
|
||||
refetchOnWindowFocus={true} // Refetch when window gets focus
|
||||
refetchWhenOffline={false} // Don't try to refetch when offline
|
||||
>
|
||||
{children}
|
||||
</SessionProvider>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user