// @ts-nocheck
import { createContext, useContext } from 'react';
export const AuthSessionContext = createContext(undefined);
/**
 * Provides the current session data such as the user id and whether the user is authenticated
 * This is the primary hook for accessing authentication state
 * @returns Current session data with computed isAuthenticated
 */
export function useSession() {
    const contextValue = useContext(AuthSessionContext);
    if (!contextValue) {
        throw new Error('useSession must be used within a AuthSessionProvider');
    }
    return contextValue;
}
//# sourceMappingURL=use-session.js.map