Skip to content

Commit

Permalink
feat: Add an event when apps call signIn or signOut (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpears201 authored Jun 15, 2023
1 parent c03a7d1 commit 8ba2515
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 1 deletion.
86 changes: 85 additions & 1 deletion src/openrpc/discovery.json
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,90 @@
}
}
]
},
{
"name": "onSignIn",
"tags": [
{
"name": "event"
},
{
"name": "capabilities",
"x-manages": [
"xrn:firebolt:capability:discovery:sign-in-status"
]
}
],
"summary": "Listen to events from all apps that call Discovery.signIn",
"params": [],
"result": {
"name": "event",
"schema": {
"type": "object",
"properties": {
"appId": {
"type": "string"
}
},
"required": [
"appId"
]
}
},
"examples": [
{
"name": "Default Example",
"params": [],
"result": {
"name": "Default Event",
"value": {
"appId": "firecert"
}
}
}
]
},
{
"name": "onSignOut",
"tags": [
{
"name": "event"
},
{
"name": "capabilities",
"x-manages": [
"xrn:firebolt:capability:discovery:sign-in-status"
]
}
],
"summary": "Listen to events from all apps that call Discovery.signOut",
"params": [],
"result": {
"name": "event",
"schema": {
"type": "object",
"properties": {
"appId": {
"type": "string"
}
},
"required": [
"appId"
]
}
},
"examples": [
{
"name": "Default Example",
"params": [],
"result": {
"name": "Default Event",
"value": {
"appId": "firecert"
}
}
}
]
}
],
"components": {
Expand Down Expand Up @@ -1704,4 +1788,4 @@
}
}
}
}
}
6 changes: 6 additions & 0 deletions src/sdks/manage/sdk.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@
"manage": [
"xrn:firebolt:capability:storage:secure"
]
},
{
"module": "Discovery",
"manage": [
"xrn:firebolt:capability:discovery:sign-in-status"
]
}
]
}

0 comments on commit 8ba2515

Please sign in to comment.