@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.
package/package.json
CHANGED
package/src/SchemaProcessor.ts
CHANGED
|
@@ -913,17 +913,16 @@ function mapToNativeAppSyncAuthDirectives(
|
|
|
913
913
|
} else {
|
|
914
914
|
rules.add(provider);
|
|
915
915
|
}
|
|
916
|
-
|
|
917
|
-
groupProvider.forEach((groups, provider) => {
|
|
918
|
-
rules.add(
|
|
919
|
-
`${provider}(cognito_groups: [${Array.from(groups)
|
|
920
|
-
.map((group) => `"${group}"`)
|
|
921
|
-
.join(', ')}])`,
|
|
922
|
-
);
|
|
923
|
-
// example: (cognito_groups: ["Bloggers", "Readers"])
|
|
924
|
-
})
|
|
925
916
|
}
|
|
926
917
|
|
|
918
|
+
groupProvider.forEach((groups, provider) => {
|
|
919
|
+
rules.add(
|
|
920
|
+
`${provider}(cognito_groups: [${Array.from(groups)
|
|
921
|
+
.map((group) => `"${group}"`)
|
|
922
|
+
.join(', ')}])`,
|
|
923
|
+
);
|
|
924
|
+
// example: (cognito_groups: ["Bloggers", "Readers"])
|
|
925
|
+
})
|
|
927
926
|
|
|
928
927
|
const authString = [...rules].join(' ');
|
|
929
928
|
|