Check Status

privo.ageGate.getStatus(userIdentifier)

The method allows checking the existing Age Gate status.

Age Gate Status entry parameters:

userIdentifier - optional string field, external user identifier

Age Gate Status response:

interface AgeEvent {
  status: AgeCheckStatus;
  userIdentifier?: string;
  agId?: string;
  ageRange?: AgeRange;
}

type AgeCheckStatus = 
  "Undefined" |
  "Pending" |
  "Allowed" |
  "Blocked" |
  "ConsentRequired" |
  "ConsentApproved" |
  "ConsentDenied" |
  "IdentityVerificationRequired" |
  "IdentityVerified" |
  "AgeVerificationRequired" |
  "AgeVerified" |
  "AgeBlocked" |
  "Canceled";

interface AgeRange {
  start: number;
  end: number;
  jurisdiction?: string;
}

status - "Undefined", "Blocked" "Allowed" "Сanceled", "Pending", "ConsentRequired", "ConsentApproved", " ConsentDenied, "AgeVerificationRequired", "AgeVerified", "AgeBlocked", "IdentityVerificationRequired", " IdentityVerified".

userIdentifier - string field, external user identifier

agId - string field, age gate identifier

Please check the Age Gate Status Description here