lightning-auth-and-payment
Version:
Lightning Network authentication and payment processing library for modern web applications
28 lines • 2.46 kB
JavaScript
;
// Client-side utilities only
// These are safe to import in browser contexts
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBTCPayCorsHeaders = exports.getAuthCorsHeaders = exports.getCorsHeaders = exports.PrismaDatabaseAdapter = exports.useLightningPayment = exports.useBTCPayPayment = exports.BTCPayPaymentModal = exports.AuthModal = exports.LightningProvider = exports.useLightningAuth = void 0;
// React hooks and components
var use_auth_1 = require("./hooks/use-auth");
Object.defineProperty(exports, "useLightningAuth", { enumerable: true, get: function () { return use_auth_1.useLightningAuth; } });
var lightning_context_1 = require("./context/lightning-context");
Object.defineProperty(exports, "LightningProvider", { enumerable: true, get: function () { return lightning_context_1.LightningProvider; } });
var AuthModal_1 = require("./components/AuthModal");
Object.defineProperty(exports, "AuthModal", { enumerable: true, get: function () { return AuthModal_1.AuthModal; } });
var BTCPayPaymentModal_1 = require("./components/BTCPayPaymentModal");
Object.defineProperty(exports, "BTCPayPaymentModal", { enumerable: true, get: function () { return BTCPayPaymentModal_1.BTCPayPaymentModal; } });
// Payment hooks
var use_btcpay_payment_1 = require("./hooks/use-btcpay-payment");
Object.defineProperty(exports, "useBTCPayPayment", { enumerable: true, get: function () { return use_btcpay_payment_1.useBTCPayPayment; } });
var use_lightning_payment_1 = require("./hooks/use-lightning-payment");
Object.defineProperty(exports, "useLightningPayment", { enumerable: true, get: function () { return use_lightning_payment_1.useLightningPayment; } });
// Database adapters (client-safe)
var prisma_database_adapter_1 = require("./adapters/prisma-database-adapter");
Object.defineProperty(exports, "PrismaDatabaseAdapter", { enumerable: true, get: function () { return prisma_database_adapter_1.PrismaDatabaseAdapter; } });
// CORS utilities (client-safe)
var cors_1 = require("./utils/cors");
Object.defineProperty(exports, "getCorsHeaders", { enumerable: true, get: function () { return cors_1.getCorsHeaders; } });
Object.defineProperty(exports, "getAuthCorsHeaders", { enumerable: true, get: function () { return cors_1.getAuthCorsHeaders; } });
Object.defineProperty(exports, "getBTCPayCorsHeaders", { enumerable: true, get: function () { return cors_1.getBTCPayCorsHeaders; } });
//# sourceMappingURL=client.js.map