chill117 / lnurl-node

Flexible lnurl server implementation with API and CLI implemented in nodejs.
MIT License
97 stars 26 forks source link

Auth in serverless #57

Open iBobik opened 2 years ago

iBobik commented 2 years ago

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

chill117 commented 2 years ago

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.

iBobik commented 2 years ago

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.

chill117 commented 2 years ago

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.