lnurl-node icon indicating copy to clipboard operation
lnurl-node copied to clipboard

Auth in serverless

Open iBobik opened this issue 3 years ago • 3 comments

It is possible to use LNURL Auth in Lambda or Worker environment? So without running server, just with Request & Reponse handlers.

iBobik avatar May 28 '22 16:05 iBobik

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.

chill117 avatar May 31 '22 10:05 chill117

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.

iBobik avatar May 31 '22 13:05 iBobik

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.

chill117 avatar May 31 '22 15:05 chill117