Trustroots / nostroots

nostroots: transition Trustroots onto the nostr network
https://trustroots.github.io/nostroots/
GNU Affero General Public License v3.0
24 stars 7 forks source link

Implement NIP-46 login in app #47

Open shuesken opened 3 weeks ago

shuesken commented 3 weeks ago

We want to allow our users to use their identity for multiple services. In the medium term, this means allowing them to log in with their Trustroots/Nostr identity into other services. (In the long-term, we want this to be handled by a dedicated other service that the user controls and uses to log into Trustroots as well).

We will use the NIP-46/NIP-05 login flow.

As a basic implementation, we need some sample website that acts a "client" and from which the login flow gets started based on the Trustroots username that the user enters. The user can then switch to the Trustroots app and query & approve the login flow. The sample website should then show a successful login.

This is a trial to see if we can implement this basic functionality or run into any hurdles. In the mid-term, we want to make this a very smooth experience and likely use push notifications.