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.js";
import { hardConfig } from "../config/hard.js";
export function QrCode({ lnurl, ...props }) {
const { qr } = formatLightningAuth(lnurl);
return (_jsx("img", { width: 500, height: 500, alt: "Login with Lightning QR Code", ...props, id: hardConfig.ids.qr, src: qr }));
}