Global Feed Post Login
Replying to Avatar ManiMe

Svelte load() + $ndk is kicking my ass.

- login asUser using any npub or NIP05 in URL

- without clearing authUser session (signed in via extension or bunker) if it exists

- instantiate asUser (if != authUser) and load profile on server side to generate and store QR code (image files) before page load

- store asUser $ndk, $user, and $qrcodes locally in PWA, to navigate entire app “as user” when route changes.

Do I instantiate $ndk separately for each user?

Do I instantiate on server and pass to browser?

Does $ndk need to pass updates to local $store … how does this work?

🫤

nostr:npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft nostr:npub1zuuajd7u3sx8xu92yav9jwxpr839cs0kc3q6t56vd5u9q033xmhsk6c2uc … anybody?

Avatar
Gigi 1y ago

#asknostr

Reply to this note

Please Login to reply.

Discussion

No replies yet.