@aws-amplify/data-schema 1.20.2 → 1.20.3

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.
@@ -614,13 +614,13 @@ function mapToNativeAppSyncAuthDirectives(authorization, isCustomHandler) {
614
614
  else {
615
615
  rules.add(provider);
616
616
  }
617
- groupProvider.forEach((groups, provider) => {
618
- rules.add(`${provider}(cognito_groups: [${Array.from(groups)
619
- .map((group) => `"${group}"`)
620
- .join(', ')}])`);
621
- // example: (cognito_groups: ["Bloggers", "Readers"])
622
- });
623
617
  }
618
+ groupProvider.forEach((groups, provider) => {
619
+ rules.add(`${provider}(cognito_groups: [${Array.from(groups)
620
+ .map((group) => `"${group}"`)
621
+ .join(', ')}])`);
622
+ // example: (cognito_groups: ["Bloggers", "Readers"])
623
+ });
624
624
  const authString = [...rules].join(' ');
625
625
  return { authString };
626
626
  }