Replies: 5 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: |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
Here's NextAuth.js Lightning and Nostr auth provider package for easy and quick intergration in your app: |
Beta Was this translation helpful? Give feedback.
-
@jowo-io I would suggest making a separate tools for lightning and nostr as those are not tightly attached to each others. |
Beta Was this translation helpful? Give feedback.
-
Update
Here's NextAuth.js Lightning and Nostr auth provider package for easy and quick intergration in your app:
https://www.npmjs.com/package/next-auth-pubkey
Original post
...
...
...
...
...
...
...
...
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’s 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
Beta Was this translation helpful? Give feedback.
All reactions