'use client';


import { useOAuth2 } from "./useOAuth2.mjs";
import { useSession } from "./useSession.mjs";

//#region src/hooks/useAuth/useAuth.ts
const useAuth = ({ session: sessionProp, intlayerConfiguration } = {}) => {
	const { session, fetchSession, revalidateSession, setSession } = useSession(sessionProp, intlayerConfiguration);
	const { oAuth2AccessToken } = useOAuth2(intlayerConfiguration);
	return {
		session,
		fetchSession,
		setSession,
		revalidateSession,
		oAuth2AccessToken,
		isAuthenticated: Boolean(session?.user || oAuth2AccessToken)
	};
};

//#endregion
export { useAuth };
//# sourceMappingURL=useAuth.mjs.map