Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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