You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
beacon: integrate xlogin for extension-free sign-in
Drop in the xlogin widget (CDN, pinned @0.0.15) — a universal Nostr/Solid
login that provides a working window.nostr with no browser extension (guest
key / paste / extension). /link is now button-driven (Sign in to continue ->
xlogin -> resolve -> publish alsoKnownAs), no jarring auto-modal. Topbar
sign-in link removed (xlogin's own button is the sign-in).
@@ -128,6 +127,8 @@ <h1>A directory of <em style="font-style:italic">did:nostr</em> identities</h1>
128
127
<footer>powered by <ahref="https://github.com/JavaScriptSolidServer/beacon">beacon</a> · each profile resolves at <code>/.well-known/did/nostr/<pubkey>.json</code></footer>
view.innerHTML=`<div class="detail"><div class="back" id="back">← all identities</div><div class="panel link-panel">${inner}</div></div>`;
260
+
$('#back').onclick=()=>navigate('/');
261
+
}
262
+
263
+
functionlinkView(){
258
264
if($('#q'))$('#q').value='';
259
265
$('#stat').innerHTML='';
260
-
constpanel=(inner)=>{view.innerHTML=`<div class="detail"><div class="back" id="back">← all identities</div><div class="panel link-panel">${inner}</div></div>`;$('#back').onclick=()=>navigate('/');};
266
+
panelLink(`<h2>Link your pod</h2>
267
+
<p>Linking your nostr key to a Solid pod lets <strong>did:nostr</strong> resolve to your WebID — so one-click sign-in works. No browser extension needed.</p>
268
+
<div class="link-form" style="margin-top:1.1rem"><button id="link-start" class="cta">Sign in to continue</button><div id="linkstatus" class="link-status"></div></div>`);
269
+
constb=$('#link-start');if(b)b.onclick=startLink;
270
+
}
261
271
262
-
view.innerHTML='<div class="loading">checking your signer…</div>';
263
-
if(!window.nostr){
264
-
panel(`<h2>Link your pod</h2>
265
-
<p>Linking your nostr key to a Solid pod lets <strong>did:nostr</strong> resolve to your WebID — so one-click <em>Sign in with did:nostr</em> works.</p>
<p><code>did:nostr:${short(pubkey)}</code> isn't linked to a Solid pod yet. Enter your WebID (your pod's profile URL) and we'll publish an <code>alsoKnownAs</code> to your nostr profile (kind 0), signed by your key.</p>
0 commit comments