How to Verify a JWT in PHP with firebase/php-jwt
JWT::decode from the firebase/php-jwt package verifies a JSON Web Token in PHP. You give it the token and a Key object that pairs the secret with the algorithm, and it returns the claims as an object, or throws an exception that says what's wrong.
