Add a warning message when using web intents

This commit is contained in:
greenart7c3 2024-08-30 05:55:22 -03:00
parent 6cd598d02c
commit acd689a18f
No known key found for this signature in database
GPG Key ID: 885822EED3A26A6D

2
55.md
View File

@ -442,6 +442,8 @@ If the user chose to always reject the event, signer application will return the
# Usage for Web Applications
You should consider using [NIP-46: Nostr Connect](46.md), [Nostr login](https://github.com/nostrband/nostr-login) or (window.nostr.js)[https://github.com/fiatjaf/window.nostr.js] for a better experience for web applications. When using this approach the web app can't call the signer in background so the user will see a popup for every event you try to sign.
Since web applications can't receive a result from the intent, you should add a modal to paste the signature or the event json or create a callback url.
If you send the callback url parameter, Signer Application will send the result to the url.