This package was renamed to next-auth-pubkey. It provides a lightweight, self-hosted Lightning and Nostr authentication provider for Next.js apps. It integrates with next-auth v4 and supports Next.js 12/13/14. The project ships TypeScript types and follows a beta release cadence. Unlike cloud-based auth providers, it keeps auth data entirely self-hosted, leveraging the Lightning Network and Nostr protocol for decentralized identity.
npm install next-auth-lightning-providerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure Lightning and Nostr providers with NextAuth using named imports.
Install 'next-auth-pubkey' instead. Update imports accordingly.
Migrate to 'next-auth-pubkey'.
Pin to exact version in package.json and test upgrades.
Ensure Node version meets requirement.
npm uninstall next-auth-lightning-provider && npm install next-auth-pubkey
Ensure 'next-auth-pubkey' is in package.json and run npm install. Check import path.
Use import NextAuthLightningProvider from 'next-auth-pubkey' (default) or import { LightningProvider } from 'next-auth-pubkey' (named).