From 9b7c903e919f589eed4710506085ce1e76de6c06 Mon Sep 17 00:00:00 2001 From: Evan Sims Date: Tue, 2 Jan 2024 13:39:10 -0600 Subject: [PATCH] qs(php): Update PHP authorization QS (#10353) --- articles/quickstart/backend/php/01-authorization.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, ]); ```