DOM EventsEvent structures

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

FieldTypeRequiredDescription
eventTypestringyesAlways "Widget.AgeGate.Result"
dataobjectyesResult details
data.statusstringyesResult status. One of "PASS", "FAIL", or "PROHIBITED" (see Status values).
data.sessionIdstring (UUID)noSession ID when the flow completes successfully. Always present when status is "PASS", absent otherwise.
data.challengeIdstring (UUID)noChallenge ID when a challenge was involved in the flow (for example, parental consent or auto age-assurance). Only present when a challenge was created.
data.agenumbernoThe age the player entered at the age gate. Present when status is "PROHIBITED".

Status values

statusMeaningWhat to do
PASSThe player cleared the age gate and a session was created. sessionId is present.Grant access using the returned sessionId.
FAILA challenge the flow required didn't pass, for example a trusted adult denied parental consent or the player didn't complete Automatic age assurance. No session is created. challengeId identifies the challenge.Don't grant access.
PROHIBITEDThe player is below the minimum age for the product in this jurisdiction and can't proceed. No session is created. age carries the entered age.Block the player from continuing.

Confirm results server-side

Treat the event status as a UX hint. Confirm the outcome server-side via the Challenge.StateChange webhook or /session/get before granting access.

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"
  }
}

When the player is below the minimum age

No session is created. Block the player from continuing.

{
  "eventType": "Widget.AgeGate.Result",
  "data": {
    "status": "PROHIBITED",
    "age": 8
  }
}

On this page