Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth in serverless #57

Open
iBobik opened this issue May 28, 2022 · 3 comments
Open

Auth in serverless #57

iBobik opened this issue May 28, 2022 · 3 comments

Comments

@iBobik
Copy link

iBobik commented May 28, 2022

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

@chill117
Copy link
Owner

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
Copy link
Author

iBobik commented May 31, 2022 via email

@chill117
Copy link
Owner

chill117 commented May 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants