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.
10 lines (9 loc) • 596 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
import { Title } from "./Title.js";
import { hardConfig } from "../config/hard.js";
import { Error } from "./Error.js";
import { Details } from "./Details.js";
import { NostrButton } from "./NostrButton.js";
export function NostrAuth({ title, theme, }) {
return (_jsxs("div", { id: hardConfig.ids.wrapper, style: theme?.wrapper, children: [_jsx(Title, { style: theme?.title, children: title }), _jsx(Error, { style: theme?.error }), _jsx(Details, { style: theme?.details }), _jsx(NostrButton, { style: theme?.button })] }));
}