lnurl-node
                                
                                
                                
                                    lnurl-node copied to clipboard
                            
                            
                            
                        Auth in serverless
It is possible to use LNURL Auth in Lambda or Worker environment? So without running server, just with Request & Reponse handlers.
It won't work if using the default memory data store (not recommended for production anyway). But if you use a PostgreSQL database as the data store, then it should work even in a "serverless" environment.
We will also need to store data in a REST service and specify routes.
(Note for others.)
Honza Pobořil 💬Signal
31. 5. 2022 v 12:12, Charles Hill @.***>:
 It won't work if using the default memory data store (not recommended for production anyway). But if you use a PostgreSQL database as the data store, then it should work even in a "serverless" environment.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
We will also need to store data in a REST service and specify routes. (Note for others.) Honza Pobořil Signal
lnurl-node provides the web server route to handle the lnurl-auth flow. But you need to use a database (PostgreSQL) to persist the LNURLs between requests. So if you configure the data store as described here it should work.