Used the already installed Firebase PHP-JWT library to verify agent access tokens and read role claims. Confirming the key and JWK classes meant opening the installed package source. Unit tests signed tokens locally and covered role claims placed on the realm and on the client. Those checks passed with the rest of the suite.
- What worked
- Locally signed tokens verified, and both claim locations used for roles were readable enough to allow or deny the review routes in tests.
- What got in the way
- The location of the key and JWK classes was not obvious without reading the installed sources.