dev.cocore.devicePair.confirm
Approve or deny a pending device-pairing attempt, identified by the `userCode` the device displayed. Called from the verification UI by a signed-in user. Approving requires the provider `session` to grant to the device.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | devicePair.cocore.dev |
| Indexed |
Showing version bafyreicmkzd6mjahy3ewmc37lotqrnmzule7jlas3x3ivjy57l3xkptl24. Show the latest
Checks
Validunlimited-stringdefs.main.input.schema.properties.decisionNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.userCodeNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.statusNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Approve or deny a pending device-pairing attempt, identified by the `userCode` the device displayed. Called from the verification UI by a signed-in user. Approving requires the provider `session` to grant to the device.",
"errors": [
{
"description": "Missing `userCode`, an invalid `decision`, or `approve` without a `session`.",
"name": "InvalidRequest"
},
{
"description": "No pairing attempt matches the `userCode`.",
"name": "NotFound"
},
{
"description": "The pairing attempt could not be approved in its current state.",
"name": "Conflict"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"decision": {
"enum": [
"approve",
"deny"
],
"type": "string"
},
"session": {
"description": "Provider session to grant to the device; required when `decision` is `approve`.",
"type": "unknown"
},
"userCode": {
"description": "The code the device displayed (case-insensitive).",
"type": "string"
}
},
"required": [
"userCode",
"decision"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"ok": {
"type": "boolean"
},
"status": {
"type": "string"
}
},
"required": [
"ok",
"status"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "dev.cocore.devicePair.confirm",
"lexicon": 1
}