getAlby / js-lightning-tools

Collection of helpful building blocks and tools to develop Bitcoin Lightning web apps
https://www.npmjs.com/package/@getalby/lightning-tools
MIT License
29 stars 13 forks source link

LNURL-verify `verifyPayment` function should handle fetch errors #125

Open rolznz opened 8 months ago

rolznz commented 8 months ago

Network errors currently are uncaught. I think for temporary errors like this we should just catch them, log the error and return false. verifyPayment is meant to be polled anyway so the next fetch should work.