isLoggedIn = NostrAuth::check(); } #[On('nostrLoggedIn')] public function handleNostrLoggedIn(string $pubkey): void { NostrAuth::login($pubkey); $this->js('window.location.reload(true);'); } #[On('nostrLoggedOut')] public function handleNostrLoggedOut(): void { $this->isLoggedIn = false; } } ?>
@if($isLoggedIn) @if($location === 'sidebar')
@csrf Logout
@else
@csrf Logout
@endif @else @if($location === 'sidebar') Mit Nostr verbinden @else Mit Nostr verbinden @endif @endif