Commit f7530d3
committed
todos: add xlogin shim — pod-authenticated writes via one script tag
Drops in xlogin (Nostr NIP-07/NIP-98 + Solid OIDC/DPoP) as a single
script. Adds the purple Login button bottom-right; on login, exposes
window.xlogin.authFetch which LOSOS's todo-pane and schema-pane already
prefer over plain fetch ((window.xlogin && window.xlogin.authFetch) ||
fetch). Result: when someone forks this app and points it at a real
pod URL (?uri=https://my.pod/today.jsonld), edits sync back via DPoP-
or NIP-98-authenticated PUTs. No code changes needed.
The data is currently inline so writes don't actually persist — but
the auth wiring is now complete so a fork-with-pod-URL Just Works.
Refs: https://github.com/melvincarvalho/xlogin1 parent b022a1e commit f7530d3
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
0 commit comments