Auth0 Home Blog Docs

Discrepency with PHP Docs and JWTVerifier.php

#1

There is a discrepency at least with the php auth0 library as downloaded with composer and the docs.

The docs show

$verifier = new JWTVerifier([
    'supported_algs' => ['RS256'],
    'valid_audiences' => ['127.0.0.1/api'],
    'authorized_iss' => ['https://something.auth0.com/']
  ]);

JWTVerifier.php is looking for a config of

if (!isset($config['suported_algs'])) {
        $config['suported_algs'] = ['HS256'];
    }

The issues is supported vs suported.

Resolved: This is only an issue if using auth0 4.0

1 Like
#2

Thanks a lot @bigcountry for finding the typo issue. I’ll report it to our product team!

closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.