Yup i wrote this demo in js last year since there was only a C# sharp demo. There are actually 2 repos and it makes sense from the backend. Can also use nip42 auth afaik.

https://github.com/bitkarrot/NIP98-js-client

Reply to this note

Please Login to reply.

Discussion

Legend.

Aww. Its all for good fun 💜🥳

She is.

What does it mean to have “auth”?

Well … it means the browser user who claims to be pubkey actually is in possession of the private key. Nothing more.

So, how does this work?

> “- redirect to another site with auth”

Well … it means that the “other site” can use “auth” to allow CRUD operations within the “black box” of their “other server”. Nothing more.

This is usefull for black box apps to interoperate alongside Nostr, but NOT for “sign Nostr events across sites with a single login” solving for the mobile login problem.

Am I missing something?