Skip to content

Commit

Permalink
fix: handle flag parsing error
Browse files Browse the repository at this point in the history
Signed-off-by: Joris Mancini <[email protected]>
  • Loading branch information
TheMaskedTurtle committed Dec 1, 2023
1 parent dfe491f commit b28a354
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/rest-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ export function fetchAuthorizationCodeFlowFeatureFlag() {
}`
);
return res.authorizationCodeFlowFeatureFlag;
})
.catch((error) => {
console.log(
`Something wrong happened when retrieving authentication.json: authorization code flow will be disabled (${error.message})`
);
return false;
});
});
}
Expand Down

0 comments on commit b28a354

Please sign in to comment.