next-auth-pubkey
Version:
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.
8 lines (7 loc) • 387 B
JavaScript
import { jsx as _jsx } from "preact/jsx-runtime";
import { formatLightningAuth } from "../../utils/lnurl/format.js";
import { hardConfig } from "../config/hard.js";
export function LightningButton({ lnurl, ...props }) {
const { button } = formatLightningAuth(lnurl);
return (_jsx("a", { ...props, id: hardConfig.ids.button, href: button, children: "Open Lightning Wallet" }));
}