Skip to content

Commit

Permalink
fix: move flag to apps-metadata-server
Browse files Browse the repository at this point in the history
Signed-off-by: Joris Mancini <[email protected]>
  • Loading branch information
TheMaskedTurtle committed Nov 29, 2023
1 parent 58766ee commit 0b1d0ec
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/utils/rest-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,18 @@ export function fetchAuthorizationCodeFlowFeatureFlag() {
return fetch('env.json')
.then((res) => res.json())
.then((res) => {
console.log(
`Authorization code flow is ${
res.authorizationCodeFlowFeatureFlag
? 'enabled'
: 'disabled'
}`
);
return res.authorizationCodeFlowFeatureFlag;
return fetch(res.appsMetadataServerUrl + '/authentication.json')
.then((res) => res.json())
.then((res) => {
console.log(
`Authorization code flow is ${
res.authorizationCodeFlowFeatureFlag
? 'enabled'
: 'disabled'
}`
);
return res.authorizationCodeFlowFeatureFlag;
});
});
}

Expand Down

0 comments on commit 0b1d0ec

Please sign in to comment.