Auth0 Home Blog Docs

Why is the Auth0 PHP library throwing a "Cannot trust token issued by" exception?

php
middleware
lumen

#1

Following this guide: https://auth0.com/blog/developing-restful-apis-with-lumen/

Every time a secured endpoint is hit, the API is returning a “We can’t trust on a token issued by” exception, as defined here in the JWT verifier library: https://github.com/auth0/auth0-PHP/blob/master/src/JWTVerifier.php#L114

Both the “valid_audiences” and “authorized_iss” parameters are defined in the api, as instructed to do so in the guide. Does anybody know of any reason this would be happening?


#2

I was missing a trailing slash in my authorized_iss.