Skip to main content

Verify token

Verify that an access token is valid for a specific site.

Token format

Access tokens are HMAC-SHA256 signed payloads: base64url(payload).base64url(signature). The payload contains:
  • gate_id — the gate this token was issued for
  • site_id — the site the gate belongs to
  • exp — expiration timestamp (default: 30 minutes after issuance)

Local verification

Publishers can verify tokens locally without calling the API. The Python SDK provides this:
The middleware (XenarchMiddleware and require_payment decorator) handles this automatically.