This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lightning-powered authentication with LNURL #7872
Comments
Great idea @jowo-io! I would also love to see this included in Additional benefits:
For a complete view on this, here are some downsides:
source: https://stacker.news/items/98659 by @TonyGiorgio Some resources:
Other production-ready (?) implementations: |
I'm currently working on an independent package that will interest those who stumble on this thread looking for a simple way to integrate Lightning auth within their It's currently a WIP, so anyone that wants to follow along with development or leave comments are welcome to do so here: https://github.com/jowo-io/next-auth-lightning-provider Hoping to have this ready soon for |
Reviewers and testers wantedThe https://github.com/jowo-io/next-auth-lightning-provider project has just moved out of alpha and into beta. It's time to polish things up and prepare the project for a stable release! Help wanted to get things across the line. About the project:A light-weight Lightning auth provider for your Next.js app that's entirely self-hosted and plugs seamlessly into the next-auth framework. You can find the project on npm and GitHub Technical reviewFocusIf you're a JavaScript or TypeScript engineer, or have an understanding of In order of importance:
AvoidAt this late stage in the project development, please avoid small syntactical suggestions or opinionated coding style suggestions. No nit-picking please :) Leaving a reviewI'd suggest opening an issue on GitHub before opening a PR, so feel free. Otherwise you can simply leave comments on here on SN. Further readingFurther discussion can be found at https://stacker.news/items/357265 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Description 馃摀
It'd be awesome to start a discussion around the integration of Lightning Auth within the
next-auth
library.What is Lightning
The Lightning Network is a second layer for Bitcoin that uses micropayment channels to scale the blockchain鈥檚 capability and handle transactions more efficiently and more cheaply.
What is LNURL
LNURL is a protocol for communication between Lightning wallets and external applications and third-party services.
Examples of LNURL using
next-auth
Demo app
I put together this demo app using LNURL +
next-auth
.Try the app hosted on Vercel: https://lnurl-next-auth-demo.vercel.app/
Inspect the app's code on GitHub: https://github.com/jowo-io/lnurl-next-auth-demo
Stacker.news
A prominent example of LNURL +
next-auth
is https://stacker.newsGive it a try, it's really seamless! Just download a Lightning wallet like Blixt or BlueWallet. Then, scan the QR on stacker.news, and you're authed!
Here's a link to the stacker.news GitHub
Benefits
next-auth
is the best and most robust solution for self-hosted auth with Next.js. Adding Lightning auth will help to expand and solidifynext-auth
's offering.Motivation
Improved documentation around implementation of, nuances around, and best practices for, LNURL auth using
next-auth
would be extremely valuable for those people developing Next.js apps on the Lightning network.Currently, up to date, clear, concise and reliable information is very hard to find. I'd love to change that!
I have the time, interest, motivation and skills to contribute and work on this feature request: developing a LNURL based
next-auth
provider, or, if for technical reasons that is not currently feasible, writing technical documentation around LNURL based auth withnext-auth
.How to reproduce 鈽曪笍
Try the app hosted on Vercel: https://lnurl-next-auth-demo.vercel.app/
Inspect the app's code on GitHub: https://github.com/jowo-io/lnurl-next-auth-demo
Contributing 馃檶馃徑
Yes, I am willing to help implement this feature in a PR
The text was updated successfully, but these errors were encountered: