UNPKG

lightning-auth-and-payment

Version:

Lightning Network authentication and payment processing library for modern web applications

21 lines (18 loc) 701 B
const { withLightning } = require('lightning-auth-and-payment'); module.exports = withLightning({ // Plugin configuration autoGenerateRoutes: true, database: 'memory', // Use in-memory database for development storage: 'memory', // Use in-memory storage for development btcpay: false, // Disable BTCPay Server for this example development: true, // Enable development features // API route prefixes (optional - these are the defaults) authPrefix: '/api/auth', paymentPrefix: '/api/payment', userPrefix: '/api/user', webhookPrefix: '/api/webhooks', })({ // Your existing Next.js configuration reactStrictMode: true, swcMinify: true, });