Oddbean new post about | logout
 https://image.nostr.build/86060f2a544776d6bbd9557c96240b67e46235cb94c5516beb6cfe9b37a05ac2.png 
 Are you trying to self host the nsec app and server? 
 certainly not. 
that's just what happens with just the code I pasted.  
 To be clear: only my webapp is running on localhost.  
 You should enter some real name to login form, not name@domain? 
 not sure why screenshot got that way, I Was certainly trying with my actual account... 

 
 ok, after a few attempts it start the actual popup. 

Modals and pop-ups makes everything messy if you ask me, and they screw back-forward navigation in the flow. I got confused, think about the poor users... And if something got stuck I do not have control. 

Is there a way to just redirect user to nsec.app that will show the authorization screen? No modals, no popup whatsoever or nostr-login. Just plain old links. 
 
 Also, the authorization preview on nsec should be even better. 
I see it working like this: 

1. on my website I have a "login with nsec" button 
2. opens use.nsec.app/auth or whatever
3. show all my nsec accounts, I pick one and callback my app. 

Straighforward, no libraries needed, no modals, no screen to maintain, no popups that require special browser permissions I'd rather discourage... 
 We plan to let you include just a form without modal in your page, we could also fire a authUrl event and then you could redirect there, but then somehow we would have to forward people back. There was a redirect url param somewhere in nip46, will look into that  
 Thanks. 

To do if from scratch, but without hosting bunker daemon myself, I should follow this: https://github.com/kind-0/nsecbunkerd/blob/master/OAUTH-LIKE-FLOW.md 
 Yes, hopefully it will soon be rewritten and included in nip46 spec 
 Nice. 

Given so many developments happening, I might wait a few weeks so maybe I'll find it the way I want it... and I'll look at Github issues and maybe open a couple of them so I can explain the way I see the UX to be. 

Thanks for the great work! 
 Amazing, looking forward to your feedback! 
 Or you could implement the oauth flow yourself and avoid nostr-login altogether