diff --git a/Sample-01/api-server.js b/Sample-01/api-server.js index b95c5f76..cc750c57 100644 --- a/Sample-01/api-server.js +++ b/Sample-01/api-server.js @@ -10,7 +10,7 @@ const app = express(); if ( !authConfig.domain || !authConfig.authorizationParams.audience || - authConfig.authorizationParams.audience === "YOUR_API_IDENTIFIER" + ["YOUR_API_IDENTIFIER", "{API_IDENTIFIER}"].includes(authConfig.authorizationParams.audience) ) { console.log( "Exiting: Please make sure that auth_config.json is in place and populated with valid domain and audience values" diff --git a/Standalone/api-server.js b/Standalone/api-server.js index b95c5f76..cc750c57 100644 --- a/Standalone/api-server.js +++ b/Standalone/api-server.js @@ -10,7 +10,7 @@ const app = express(); if ( !authConfig.domain || !authConfig.authorizationParams.audience || - authConfig.authorizationParams.audience === "YOUR_API_IDENTIFIER" + ["YOUR_API_IDENTIFIER", "{API_IDENTIFIER}"].includes(authConfig.authorizationParams.audience) ) { console.log( "Exiting: Please make sure that auth_config.json is in place and populated with valid domain and audience values"