import { useSeoMeta } from "@unhead/react"; import { useEffect } from "react"; import { CheckCircle2 } from "lucide-react"; // Callback target for mobile NIP-46 signer apps after they approve a // `nostrconnect://` request. The actual login completes via the relay // subscription in the original tab — this page just provides a friendly // landing if the signer opened it in a new tab/window. const RemoteLoginSuccess = () => { useSeoMeta({ title: "Signer connected", description: "You can return to Shakespeare.", }); useEffect(() => { // Best-effort: most signers open this in a new tab. Try to close it; // the manual link below is the fallback when the browser refuses. window.setTimeout(() => { try { window.close(); } catch { // ignored } }, 500); }, []); return (
You can return to Shakespeare. Your login should complete automatically.
Open Shakespeare