Diego Gurpegui on Nostr: Another alternative would be to let the plugin change the account, not the client. ...
Another alternative would be to let the plugin change the account, not the client. Since in Nostr is the plugin that really manages it.
A new API function could be define that allows the client to notify the website that the account changed so the website acts accordingly.
I'm still not decided on which is the best approach.
Published at
2023-03-12 14:27:39Event JSON
{
"id": "ccc66b8de6dabde87042bc166272bca170b60f586af43f5acd1df9de229422a2",
"pubkey": "d1e60465c2b777325e9133f2100d2bb31416dca810f54a1d95665621c5dee193",
"created_at": 1678631259,
"kind": 1,
"tags": [
[
"e",
"aba3e8152d21160184ac1756f520b14ae4e86e62a904cf943d93520513c073f7"
],
[
"e",
"8e82ab9c59c8f419098958a70c4f8f9c5af477e85440c9b55c8949b89c334600"
],
[
"e",
"b6d13e70bb6dd3f51aeeca1385ee4ed7607c98980ff6dbb38c08aa3af0ab4993"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"
],
[
"p",
"46fcbe3065eaf1ae7811465924e48923363ff3f526bd6f73d7c184b16bd8ce4d"
]
],
"content": "Another alternative would be to let the plugin change the account, not the client. Since in Nostr is the plugin that really manages it.\nA new API function could be define that allows the client to notify the website that the account changed so the website acts accordingly.\nI'm still not decided on which is the best approach.",
"sig": "3e942f78f426e7599e3f1d670171f12ebfc53a5dd05325f801e144f45bff7e9b66beb660620149022de24fdaff78041d964e3b316ca6412ad10da036a2a6c9f6"
}