I don't understand how to implement login with nostr extension ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ

Help pls I need to see some examples

Reply to this note

Please Login to reply.

Discussion

Been meaning to look at this myself

NIP-07? ๐Ÿถ๐Ÿพ๐Ÿซก

โ€‹nostr:npub1alpha9l6f7kk08jxfdaxrpqqnd7vwcz6e6cvtattgexjhxr2vrcqk86dsn you may have the knowledge here. Unless we are talking about earlier Relay auth. Then nostr:npub18kzz4lkdtc5n729kvfunxuz287uvu9f64ywhjz43ra482t2y5sks0mx5sz may help! ๐Ÿถ๐Ÿพ๐Ÿซก

I think it's nip56 or 98, I don't get it

Should be nip-07, if you mean allowing people to sign into your website

https://github.com/fiatjaf/nos2x

I don't think this covers authentication, just signing events?

It will open the extension and ask how long theyโ€™d like to give access. This might be a good example:

https://github.com/leesalminen/nostr-bulk-dm/blob/main/src/App.js

Yea extension donโ€™t do auth. Only sign events. I was looking at this last week. Havenโ€™t tried anything.

What's the difference in your opinion? Can you use a NIP 07 extension with only a public key?

I think someone could make a malicious extension that that doesn't validate and can exploit a service just reading the public key

Would be interesting to try and do this. Youโ€™re making me realize I have a few assumptions about how nip 07 signing works.

If you need NIP-98, then nostr:npub138s5hey76qrnm2pmv7p8nnffhfddsm8sqzm285dyc0wy4f8a6qkqtzx624 have you covered. He has a lib in typescript ๐Ÿถ๐Ÿพ๐Ÿซก

Browser extension? Project in JavaScript?

Nip-07? #NDK makes this very easy to implement if youโ€™re building a web app.

On a browser?