diff --git a/.changeset/tiny-eels-leave.md b/.changeset/tiny-eels-leave.md new file mode 100644 index 0000000000..5566ab60ef --- /dev/null +++ b/.changeset/tiny-eels-leave.md @@ -0,0 +1,5 @@ +--- +'@shopify/app': patch +--- + +Fix sending empty scopes diff --git a/packages/app/src/cli/models/extensions/specifications/app_config_app_access.ts b/packages/app/src/cli/models/extensions/specifications/app_config_app_access.ts index abe81ec2da..62e8a767e8 100644 --- a/packages/app/src/cli/models/extensions/specifications/app_config_app_access.ts +++ b/packages/app/src/cli/models/extensions/specifications/app_config_app_access.ts @@ -18,7 +18,7 @@ const AppAccessSchema = zod.object({ .object({ scopes: zod .string() - .transform((scopes) => normalizeDelimitedString(scopes)) + .transform((scopes) => normalizeDelimitedString(scopes) ?? '') .optional(), use_legacy_install_flow: zod.boolean().optional(), })