{"repo":"jowo-io/next-auth-pubkey","free":true,"listed":false,"github":"https://github.com/jowo-io/next-auth-pubkey","clone":"git clone https://github.com/jowo-io/next-auth-pubkey.git","description":"A light-weight Lightning and Nostr auth provider for your Next.js app that's entirely self-hosted and plugs seamlessly into the next-auth framework.","language":"TypeScript","stars":21,"topics":["authentication","bitcoin","jwt","lightning","lightning-network","lnurl-auth","nextauth","nextjs","nodejs","oauth"],"license":null,"category":"auth-billing-email","readme_excerpt":"About A light-weight Lightning and Nostr auth provider for your Next.js app that's entirely self-hosted, meaning no 3rd party API keys required, and plugs seamlessly into the next-auth framework. ℹ️ This package is built for Next.js apps that use next-auth. It's not compatible with other authentication libraries. How it works Install the package, add two code snippets to your app (as shown below). It's that simple. Your users will then be shown an additional authentication option in the provider list on the next-auth sign in page. When they click the new option they'll be presented with a QR code. The QR code can be scanned with any Bitcoin Lightning wallet that supports lnurl-auth. After scanning, they'll be securely logged in! No usernames, no passwords and no third party providers required. The next-auth-pubkey package extends lnurl-auth by wrapping it in an OAuth API. lnurl-auth is used to authenticate your users, and OAuth is wrapped around it to make integration with next-auth seamless. Compatibility Getting started Install .env You'll need to setup a couple of env vars in your project's .env file. However, you may already have them defined as part of your next-auth configuration. --- The NEXTAUTH URL env var must be defined as the canonical URL of your site. --- The NEXTAUTH SECRET env var must be defined as a securely generated random string. You can quickly create a good value for NEXTAUTH SECRET on the command line via this openssl command. API Create a new API rout","default_branch":null,"files":null,"tree":[],"storefront":"/r/jowo-io","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jowo-io/next-auth-pubkey/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}