Widget.AgeGate.Result
Emitted when the Age Gate flow completes with a result. A session is created when the flow completes successfully, and a challenge is created whenever the flow needs one, either for Verifiable Parental Consent or for Automatic age assurance when the player claims an age old enough to skip parental consent.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
eventType | string | yes | Always "Widget.AgeGate.Result" |
data | object | yes | Result details |
data.status | string | yes | Result status (for example, "PASS") |
data.sessionId | string (UUID) | no | Session ID when the flow completes successfully. Always present when status is "PASS". |
data.challengeId | string (UUID) | no | Challenge ID when a challenge was resolved during the flow (for example, parental consent or auto age-assurance). Only present when a challenge was created. |
Examples
When a challenge was resolved during the flow
{
"eventType": "Widget.AgeGate.Result",
"data": {
"status": "PASS",
"sessionId": "f1af4704-74b4-4966-b13a-18eb16bccf9c",
"challengeId": "a04467a0-83de-40ca-8572-8cc761e896aa"
}
}
When no challenge was required
{
"eventType": "Widget.AgeGate.Result",
"data": {
"status": "PASS",
"sessionId": "f1af4704-74b4-4966-b13a-18eb16bccf9c"
}
}