UNPKG

lightswitch-js

Version:

A minimal SDK for subscription management, entitlements, and paywalls

13 lines (12 loc) 884 B
export { default as ProtectedRoute } from "./components/ProtectedRoute.jsx"; export { useLightswitch } from "./hooks/useLightswitch.js"; export { useLightswitchAuth } from "./hooks/useAuth.js"; export { useEntitlement } from "./hooks/useEntitlement.js"; export { useCustomerPortal } from "./hooks/useCustomerPortal.js"; export { default as Lightswitch } from "./core/index.js"; export { trackEvent } from "./core/tracking.js"; export { setSupabaseSession } from "./core/auth.js"; export { LightswitchContext, LightswitchProvider } from "./components/LightswitchProvider.jsx"; export { callWithAuth, fetchWithAuth } from "./core/api.js"; export { createCustomerPortal, redirectToCustomerPortal } from "./core/customerPortal.js"; export { handleExternalAuthReturn, waitForAuthStateChange, extractTokensFromUrl, hasAuthTokensInUrl, useExternalAuthReturn } from "./utils/authHelpers.js";