Skip to content

Commit

Permalink
Update api-server.js to include the hardcoded audience placeholder (#467
Browse files Browse the repository at this point in the history
)

* Update api-server.js to include the hardcoded audience placeholder

* Update api-server.js
  • Loading branch information
frederikprijck authored Dec 6, 2023
1 parent e9784fa commit ed53710
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sample-01/api-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion Standalone/api-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ed53710

Please sign in to comment.