This commit is contained in:
2025-12-13 00:06:50 +01:00
parent 8f1db21fb1
commit 4b6fc668b5

View File

@@ -57,10 +57,8 @@ export function AuthProvider({ initialSession = null, children }: AuthProviderPr
}, [fetchSession]); }, [fetchSession]);
useEffect(() => { useEffect(() => {
if (initialSession) return;
fetchSession(); fetchSession();
}, [initialSession, fetchSession]); }, [fetchSession]);
const login = useCallback( const login = useCallback(
(returnTo?: string) => { (returnTo?: string) => {