feat: handle logout events in nostr-login

This commit introduces handling for logout events in nostr-login across various pages. When a user logs out, the current public key and other related information are reset to null. The nostrLogin.js file has also been updated to dispatch a 'nostrLoggedOut' event when this occurs. Additionally, the nostr-login package has been added to the project dependencies.
This commit is contained in:
fsociety
2024-10-06 13:38:49 +02:00
parent a7716152d4
commit 1d5079bfa0
9 changed files with 134 additions and 29 deletions

View File

@@ -15,6 +15,7 @@
"flatpickr": "^4.6.13",
"laravel-echo": "^1.16.1",
"laravel-vite-plugin": "^1.0",
"nostr-login": "^1.6.6",
"nostr-tools": "^2.7.2",
"postcss": "^8.4.41",
"pusher-js": "^8.4.0-rc2",