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