lightning-auth-and-payment
Version:
Lightning Network authentication and payment processing library for modern web applications
36 lines • 3.89 kB
TypeScript
export { LightningAuth } from "./auth";
export { BTCPayClient, createBTCPayClient, createBTCPayClientFromEnv, } from "./btcpay";
export { MemoryLnurlStore } from "./stores/memory";
export { DatabaseLnurlStore } from "./stores/database";
export { HybridLnurlStore } from "./stores/hybrid";
export { QRCode, LightningQRCode, LnurlAuthQRCode } from "./components/QRCode";
export { PaymentModal } from "./components/PaymentModal";
export { BTCPayPaymentModal } from "./components/BTCPayPaymentModal";
export { AuthModal } from "./components/AuthModal";
export { AuthHeader } from "./components/AuthHeader";
export type { QRCodeProps, LightningQRCodeProps, LnurlAuthQRCodeProps, } from "./components/QRCode";
export type { BTCPayPaymentModalProps } from "./components/BTCPayPaymentModal";
export type { AuthModalProps } from "./components/AuthModal";
export { LightningLogin, LightningAuthModal, LightningPaymentModal, LightningButton, LightningPayButton, LightningWalletButton, LightningSendButton, LightningCopyButton, LightningDownloadButton, LightningExternalButton, LightningCard, LightningPaymentCard, LightningUserCard, LightningWalletCard, LightningBadge, LightningStatusBadge, LightningPaymentBadge, LightningUserBadge, LightningWalletBadge, LightningNetworkBadgeComponent, ConnectedBadge, DisconnectedBadge, PendingBadge, CompletedBadge, FailedBadge, ExpiredBadge, LightningInput, LightningAddressInput, LightningPubkeyInput, LightningWalletInput, LightningPaymentInput, ThemeToggle, } from "./components";
export { Button } from "./components/ui/button";
export { Badge } from "./components/ui/badge";
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from "./components/ui/card";
export { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, } from "./components/ui/dialog";
export { cn, formatNumber, formatDate, generateClientSeed, satsToBTC, btcToSats, formatSats, formatBTC, } from "./utils/formatting";
export * from "./utils/constants";
export { createAuthInstance, getBaseUrl, handleAuthCallback, handleAuthStatus, handleLogout, } from "./utils/api-routes";
export { createAuthInstance as createSessionAuth, getSession, setSessionCookie, clearSession, createSession, verifySession, getCurrentUserId, isAuthenticated, requireAuth, } from "./utils/session";
export { useLightningAuth } from "./hooks/use-auth";
export { useLightningPayment } from "./hooks/use-lightning-payment";
export { useBTCPayPayment } from "./hooks/use-btcpay-payment";
export { LightningProvider, useLightningContext, useAuth } from "./context/lightning-context";
export { ThemeProvider, useTheme, useThemeMode, useThemeClass } from "./theme";
export type { Theme, ThemeMode, ThemeContextValue, ThemeProviderProps } from "./theme";
export { PrismaDatabaseAdapter, createPrismaAdapter } from "./adapters";
export type { CreateInvoiceRequest, WebhookPayload, LoginInfo, ChallengeEntry, AuthConfig, LnurlStore, DatabaseAdapter, SessionData, } from "./types";
export type { LightningLoginProps, LightningAuthModalProps, LightningPaymentModalProps, LightningButtonProps, LightningCardProps, LightningPaymentCardProps, LightningUserCardProps, LightningWalletCardProps, LightningBadgeProps, LightningInputProps, ThemeToggleProps, } from "./components";
export { BTCPayService, createBTCPayService, type BTCPayConfig, type CreateInvoiceParams, type BTCPayInvoice, type PaymentStatus, } from "./services/btcpay-service";
export { handleLnurlRequest, handleAuthCallbackRequest, handleAuthStatusRequest, handleUserRequest, handleUserRequestWithAdapter, handleLogoutRequest, } from "./utils/nextjs-routes";
export { getCorsHeaders, getAuthCorsHeaders, getBTCPayCorsHeaders, } from "./utils/cors";
export { handleBTCPayInvoiceCreation, handleBTCPayInvoiceStatus, handleBTCPayWebhookRequest, } from "./utils/btcpay-nextjs-routes";
//# sourceMappingURL=index.d.ts.map