mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-05-23 13:15:36 +00:00
6bb7d93d1dc7b87f95367522c25c6f2452ab3bec
Closes a security flaw where the server trusted any pubkey the client sent. The frontend now signs a per-session, time-bound challenge (kind-22242 event) that the backend verifies with swentel/nostr-php before establishing the session. - NostrAuth: issueChallenge() + loginWithSignedEvent() with full schnorr/id verification, TTL window, and idempotent re-entry for concurrent Livewire listeners. - auth-button: mounts a fresh challenge, exposes it via data-attribute + requestNostrChallenge() fallback, renders a full-viewport AAA-style loading overlay while the wallet signs. - NostrSessionGuard: override logout() to drop the cookie-jar dep so programmatic logout works in any context.
🔧 Update dependencies (
composer.lock) and adjust project configuration files for compatibility with updated packages.
- ✨ Refactor
edit.blade.php to handle admin-specific fields (accepted and sats_paid) through conditional logic.
🔧 Update dependencies (
composer.lock) and adjust project configuration files for compatibility with updated packages.
🔧 Update dependencies (
composer.lock) and adjust project configuration files for compatibility with updated packages.
Languages
Blade
79.4%
PHP
19.2%
JavaScript
0.8%
CSS
0.6%