Skip to content

Commit

Permalink
qs(php): Update PHP authorization QS (#10353)
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims authored Jan 2, 2024
1 parent 2bd892c commit 9b7c903
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion articles/quickstart/backend/php/01-authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
```

Expand Down

0 comments on commit 9b7c903

Please sign in to comment.