add permissions

This commit is contained in:
greenart7c3 2023-11-29 11:22:26 -03:00
parent 86e44b75eb
commit 70a722b5d6

11
100.md
View File

@ -43,6 +43,17 @@ intent.`package` = "com.example.signer"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse("nostrsigner:"))
intent.`package` = "com.example.signer"
intent.putExtra("type", "get_public_key")
// You can send some default permissions for the user authorize for ever
val permissions = listOf(
Permission(
"sign_event",
22242
),
Permission(
"nip44_decrypt"
)
)
intent.putExtra("permissions", permissions.toJson())
context.startActivity(intent)
```
- result: