Clearance keys
Fetch the public keys that verify a site’s clearance tokens.
GET
Clearance keys
Public. No secret is required. Verify a clearance against these keys on your server or edge.
Python with PyJWT and
PHP with
Cloudflare Workers with WebCrypto and no library:
Then apply your rule.
kid matches the token header. x is the raw Ed25519 public key. The response carries cache-control: public, max-age=300. Cache keys by kid.
Status codes
Rotation
Rotate signing key on the site’s dashboard panel increments the key version. New tokens carry the newkid. The response lists the current and the previous version, so a token signed before rotation verifies until it expires.
Verify
Node withjose:
cryptography:
firebase/php-jwt. The library checks exp; check iss and aud yourself.