irislib/iris-messenger

Feature Request: Import `nsec` from url for new users

telamon opened this issue · 2 comments

Hello, I'm working with user onboarding flows, and one feature that would help new users import their secret/login into iris is if iris had a route configured to accept nsec via url.

Expected behaviour:

Visiting

https://iris.to/#nsecXXXXXXXXXXXX

Would log you into that account.

Implementation detail

Using the hash-component of the URL is recommended as that part of URL is never transmitted over wire;
When nsec is detected import and clear the location hash to avoid unintentional share

window.location.hash = ''

Thanks.
FYI; This is a prototype of the usecase: https://telamon.github.io/powmem/demo.html
I would like new users to start their own nostr adventure using iris and a mobile phone.

Slowly making some progress...
image