auth0-PHP: Error thrown when attempting to verify access token

Checklist

  • The issue can be reproduced in a a sample app (either webapp or api) (or N/A).
  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the examples and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

SDK Version

8.5

PHP Version

PHP 8.1

Description

After updating to the latest version I get the following error thrown when verifying and validating an access token: Could not find a PSR-17 compatible request factory. Please install one, or provide one using the setHttpRequestFactory() method

The changelog for the most recent version said that I should raise an issue if I see problems following the latest updates I should raise an issue here.

How can we reproduce this issue?

I’m using the following code to verify the access token:

$token = new \Auth0\SDK\Token($auth0_config, $token, \Auth0\SDK\Token::TYPE_TOKEN); $token->verify(); $token->validate();

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

This is amazing, @evansims. Thanks, I’ll give it a whirl when I’m back in front of the tools, Monday morning.

Thank you 😄