lightswitch-js
Version:
A minimal SDK for subscription management, entitlements, and paywalls
11 lines (10 loc) • 727 B
TypeScript
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 { 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 { handleExternalAuthReturn, waitForAuthStateChange, extractTokensFromUrl, hasAuthTokensInUrl, useExternalAuthReturn } from "./utils/authHelpers.js";