Browse Source

Fix NIP-98 URL mismatch in log viewer (v0.39.1)

- Include query parameters in signed NIP-98 auth URL
- Auth event URL must match actual request URL including ?offset=&limit=

Files modified:
- app/web/src/LogView.svelte: Fix auth URL to include query params
- pkg/version/version: Bump to v0.39.1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
main
mleku 2 weeks ago
parent
commit
05170db4f7
No known key found for this signature in database
  1. 2
      app/web/dist/bundle.js
  2. 2
      app/web/dist/bundle.js.map
  3. 5
      app/web/src/LogView.svelte
  4. 2
      pkg/version/version

2
app/web/dist/bundle.js vendored

File diff suppressed because one or more lines are too long

2
app/web/dist/bundle.js.map vendored

File diff suppressed because one or more lines are too long

5
app/web/src/LogView.svelte

@ -94,8 +94,9 @@ @@ -94,8 +94,9 @@
}
try {
const authHeader = await createAuthHeader("GET", "/api/logs");
const url = `${window.location.origin}/api/logs?offset=${offset}&limit=${LIMIT}`;
const path = `/api/logs?offset=${offset}&limit=${LIMIT}`;
const authHeader = await createAuthHeader("GET", path);
const url = `${window.location.origin}${path}`;
const response = await fetch(url, {
headers: authHeader ? { Authorization: `Nostr ${authHeader}` } : {},
});

2
pkg/version/version

@ -1 +1 @@ @@ -1 +1 @@
v0.39.0
v0.39.1

Loading…
Cancel
Save