@forklaunch/core 1.5.17 → 1.5.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -992,8 +992,8 @@ async function checkAuthorizationToken(req, authorizationMethod, authorizationTo
992
992
  );
993
993
  if (collapsedAuthorizationMethod.scopeHeirarchy) {
994
994
  if (collapsedAuthorizationMethod.requiredScope) {
995
- if (!resourceScopes.has(collapsedAuthorizationMethod.requiredScope) || Array.from(resourceScopes).every(
996
- (scope) => collapsedAuthorizationMethod.scopeHeirarchy?.indexOf(scope) ?? -1 > -1
995
+ if (!resourceScopes.has(collapsedAuthorizationMethod.requiredScope) || !Array.from(resourceScopes).every(
996
+ (scope) => (collapsedAuthorizationMethod.scopeHeirarchy?.indexOf(scope) ?? -1) > -1
997
997
  )) {
998
998
  return invalidScope;
999
999
  }