I spent many hours of today into finding out what is going wrong with the alby based NIP-07 login for # zappedit
The issue seemed to be due to the fact that I was calling the `window.nostr` methods as a part of page load.
My mind did not comprehend the fact that the extension also needed some time to setup its scripts, while my page is loading.
This led to intermittent issues while logging to #zappedit using NIP-07.
The fix here was to change the UX ->
- Always do the first call to `window.nostr` methods only from a user action (like a button click)
- By the time the user clicks the button, the page is fully rendered and the extension seems to be ready too.
Added the same recommendation in a PR to NIP-07. Not sure if i am being paranoid 😁