Cleanup event fields

This commit is contained in:
Jeremy Klein 2024-07-28 15:40:19 -07:00
parent 66ec6955e9
commit dd11b7ee33

7
68.md
View File

@ -48,15 +48,14 @@ Each client app has an “identity” keypair whose private key stays server sid
// ... other fields
"content": {
"name": "Zappy Bird",
"domain": "zappybird.com",
"picture": "https://zappybird.com/logo.png",
"image": ["https://zappybird.com/auth/callback"],
"nip05": "_@zappybird.com",
"image": "https://zappybird.com/logo.png",
"allowed_redirect_uris": ["https://zappybird.com/auth/callback", "zappybird://auth/callback"],
}
}
```
This event contains the content that would show up on a permissions page: app name, image, and a NIP-05-verified domain. See [below](#why-not-just-use-the-kind-0-metadata-event-for-app-identity) for reasons why this shouldnt just be the kind-0 event. Critically, it can also contain restrictions on who can receive connections as this app identity.
This event contains the content that would show up on a permissions page: app name, image, and a NIP-05-verified address. See [below](#why-not-just-use-the-kind-0-metadata-event-for-app-identity) for reasons why this shouldnt just be the kind-0 event. Critically, it can also contain restrictions on who can receive connections as this app identity.
### OAuth