This is something that is important to implement as it makes the plugin very difficult to use with any service that rotates it’s signing keys (as the should).
All major OIDC providers (Google, Facebook, Github, Cloudflare, Okta, Auth0 etc) provide their certs via a JWKS URL that the application can retrieve for verification rather than hard-coding the certificate.
I’m sure there are other PHP libraries out there but an example of this here:
https://github.com/okta/okta-jwt-verifier-php