diff --git a/articles/quickstart/backend/php/01-authorization.md b/articles/quickstart/backend/php/01-authorization.md index 652e8d0866..5bf983addd 100644 --- a/articles/quickstart/backend/php/01-authorization.md +++ b/articles/quickstart/backend/php/01-authorization.md @@ -77,10 +77,11 @@ require 'vendor/autoload.php'; // Now instantiate the Auth0 class with our configuration: $auth0 = new \Auth0\SDK\Auth0([ + 'strategy' => \Auth0\SDK\Configuration\SdkConfiguration::STRATEGY_API, 'domain' => $_ENV['AUTH0_DOMAIN'], 'clientId' => $_ENV['AUTH0_CLIENT_ID'], 'clientSecret' => $_ENV['AUTH0_CLIENT_SECRET'], - 'audience' => $_ENV['AUTH0_AUDIENCE'] + 'audience' => ($_ENV['AUTH0_AUDIENCE'] ?? null) !== null ? [trim($_ENV['AUTH0_AUDIENCE'])] : null, ]); ```