If your website requires login, consider adding login with nostr.

Demo:

NIP-97: Login with Nostr: https://github.com/nostr-protocol/nips/blob/login/97.md

Reply to this note

Please Login to reply.

Discussion

💥💥💥

great

#nostr #dev #asknostr How are you instantiating the user? Session cookie with their key? What methods of caching do you do?

Love this.

Can this work with a PWA on iOS?

I think so, its basically just a user interface slapped on NIP-98 HTTP Auth

Maybe the Login URI would be an issue, but that could be solved in a similar way how njump . me/neventxxxx shows that “Open in” bar at the bottom

But this NIP-97 only describes how to extract the npub from the seckey holded by another app (like Nostur)?

not sure what you mean, this is only for proving you own a key (proving you are you), by signing a NIP-98 message

Yes exactly. This won’t be a solution for the problem/challenge to do signing within a PWA on iOS without the nsec itself.

Yes 💪

Very cool. Any way to do this easily on WordPress (for a quasi-technical guy)?

Not yet, but I made a plug-in a while ago to use your WordPress as a media host:

https://github.com/fabianfabian/nostr-media

Should not be that difficult to change it and also allow all you WordPress users to login with nostr.

I might give it a try but I'm working on some other things first.

all your* WordPress users