We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9f0c0c commit 0416aa7Copy full SHA for 0416aa7
Sample-01/api-server.js
@@ -9,8 +9,8 @@ const app = express();
9
10
if (
11
!authConfig.domain ||
12
- !authConfig.audience ||
13
- authConfig.audience === "YOUR_API_IDENTIFIER"
+ !authConfig.authorizationParams.audience ||
+ authConfig.authorizationParams.audience === "YOUR_API_IDENTIFIER"
14
) {
15
console.log(
16
"Exiting: Please make sure that auth_config.json is in place and populated with valid domain and audience values"
@@ -28,7 +28,7 @@ app.use(
28
);
29
30
const checkJwt = auth({
31
- audience: authConfig.audience,
+ audience: authConfig.authorizationParams.audience,
32
issuerBaseURL: `https://${authConfig.domain}`,
33
});
34
0 commit comments