attestation token
{
  "app_state": {
    "app_integrity_state": "StoreRecognized",
    "package_cert_sha256_digest": [
      "53fc84c076009020b9152f3c81add1ec1be0a23e207fbce48d124f7419f4ee98"
    ],
    "package_id": "com.AnotherAxiom.GorillaTag",
    "version": "30011"
  },
  "request_details": {
    "exp": 1790432909,
    "nonce": "y5AAGy5PqdASrr9E3CL6zZeXYssCA3cVsrqP6uk13nI=",
    "timestamp": 1790429309
  },
  "device_state": {
    "device_integrity_state": "Advanced",
    "unique_id": "c70fb2140643698fe8e822e9f6a9d21f22ff2ba4732cc6c7655c560b90351f3b",
    "security_update_pending_days": 0
  }
}
app_integrity_state
The app integrity state StoreRecognized means the app was purchased from the Meta Quest Store. NotRecognized means it's a not from the Meta Store (sideloaded). NotEvaluated Meta couldn't even verify where the app was from.
package_cert_sha256_digest
The sha256 of the certificate the app was signed with. Each keystore has a unique unreplicable sha256, Your server should check it against the one it expects. If it's different that means the apk got resigned with a different keystore, which is most definitely a modded apk, so it fails authentication.
package_id
The app's package name from the apps attestation claims. If it isn't the package you expect, the user fails authentication. Spoofing it is what is called the private applab method.
version
The app's version number, or version code, edited in apktool.yaml
exp
How long until the attestation token becomes invalid. Meta sets this to 24 hours after it's generated by default.
nonce
The challenge_nonce your app sent into GetIntegrityToken, It has to match the challenge your server gave, or the token is invalid.
timestamp
When the token was created, in Utc seconds.
device_integrity_state
The Device state of the headset when authenticating into your app. Advanced means a locked bootloader and a valid Android image. Basic means the bootloader and image are valid, but another check failed, so it might have been fucked with after booting (root). NotTrusted means the bootloader is unlocked or the Android image is invalid.
unique_id
A per app id for the device, esentially a hardware id. You can use it to hardware ban someone from your app. Meta rotates it every 30 days for "privacy", so it isn't permanent.
security_update_pending_days
How many days it's been since the latest security patch. It is important a check is added for this, since people purposefully miss updating there oculus to be able to root, however updates reach people at different times, so don't make the check 1 days.
validate
POST /v1/validate/attestation
Validate an attestation token