@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.
package/lib/http/index.js CHANGED
@@ -1068,8 +1068,8 @@ async function checkAuthorizationToken(req, authorizationMethod, authorizationTo
1068
1068
  );
1069
1069
  if (collapsedAuthorizationMethod.scopeHeirarchy) {
1070
1070
  if (collapsedAuthorizationMethod.requiredScope) {
1071
- if (!resourceScopes.has(collapsedAuthorizationMethod.requiredScope) || Array.from(resourceScopes).every(
1072
- (scope) => collapsedAuthorizationMethod.scopeHeirarchy?.indexOf(scope) ?? -1 > -1
1071
+ if (!resourceScopes.has(collapsedAuthorizationMethod.requiredScope) || !Array.from(resourceScopes).every(
1072
+ (scope) => (collapsedAuthorizationMethod.scopeHeirarchy?.indexOf(scope) ?? -1) > -1
1073
1073
  )) {
1074
1074
  return invalidScope;
1075
1075
  }