From 4c948b77cde1552fe4dac13de29b06b9c907a987 Mon Sep 17 00:00:00 2001 From: Paulo Margarido <64600052+paulomarg@users.noreply.github.com> Date: Thu, 23 Nov 2023 14:33:55 -0500 Subject: [PATCH] Fix app proxy auth docs --- .changeset/great-deers-kneel.md | 2 ++ .../docs/generated/generated_docs_data.json | 18 +++++++++--------- .../authenticate/public/appProxy/types.ts | 2 +- 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 .changeset/great-deers-kneel.md diff --git a/.changeset/great-deers-kneel.md b/.changeset/great-deers-kneel.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/great-deers-kneel.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/shopify-app-remix/docs/generated/generated_docs_data.json b/packages/shopify-app-remix/docs/generated/generated_docs_data.json index da161fb183..4234e4e550 100644 --- a/packages/shopify-app-remix/docs/generated/generated_docs_data.json +++ b/packages/shopify-app-remix/docs/generated/generated_docs_data.json @@ -1318,7 +1318,7 @@ "description": "Use the `liquid` helper to render a `Response` with Liquid content.", "tabs": [ { - "code": "import {authenticate} from \"~/shopify.server\"\n\nexport async function loader({ request }) {\n const {liquid} = authenticate.public.appProxy(request);\n\n return liquid(\"Hello {{shop.name}}\")\n}", + "code": "import {authenticate} from \"~/shopify.server\"\n\nexport async function loader({ request }) {\n const {liquid} = await authenticate.public.appProxy(request);\n\n return liquid(\"Hello {{shop.name}}\")\n}", "title": "app/routes/**\\/.ts" } ] @@ -1445,7 +1445,7 @@ "description": "Use the `liquid` helper to render a `Response` with Liquid content.", "tabs": [ { - "code": "import {authenticate} from \"~/shopify.server\"\n\nexport async function loader({ request }) {\n const {liquid} = authenticate.public.appProxy(request);\n\n return liquid(\"Hello {{shop.name}}\")\n}", + "code": "import {authenticate} from \"~/shopify.server\"\n\nexport async function loader({ request }) {\n const {liquid} = await authenticate.public.appProxy(request);\n\n return liquid(\"Hello {{shop.name}}\")\n}", "title": "app/routes/**\\/.ts" } ] @@ -1638,7 +1638,7 @@ "tabs": [ { "title": "app/routes/**\\/.ts", - "code": "import {authenticate} from \"~/shopify.server\"\n\nexport async function loader({ request }) {\n const {liquid} = authenticate.public.appProxy(request);\n\n return liquid(\"Hello {{shop.name}}\")\n}", + "code": "import {authenticate} from \"~/shopify.server\"\n\nexport async function loader({ request }) {\n const {liquid} = await authenticate.public.appProxy(request);\n\n return liquid(\"Hello {{shop.name}}\")\n}", "language": "typescript" } ] @@ -2208,14 +2208,14 @@ { "filePath": "/server/types.ts", "syntaxKind": "MethodSignature", - "name": "__@iterator@577", + "name": "__@iterator@579", "value": "() => IterableIterator", "description": "Iterator" }, { "filePath": "/server/types.ts", "syntaxKind": "MethodSignature", - "name": "__@unscopables@579", + "name": "__@unscopables@581", "value": "() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }", "description": "Returns an object whose properties have the value 'true'\r\nwhen they will be absent when used in a 'with' statement." }, @@ -4735,7 +4735,7 @@ "description": "Use the `liquid` helper to render a `Response` with Liquid content.", "tabs": [ { - "code": "import {authenticate} from \"~/shopify.server\"\n\nexport async function loader({ request }) {\n const {liquid} = authenticate.public.appProxy(request);\n\n return liquid(\"Hello {{shop.name}}\")\n}", + "code": "import {authenticate} from \"~/shopify.server\"\n\nexport async function loader({ request }) {\n const {liquid} = await authenticate.public.appProxy(request);\n\n return liquid(\"Hello {{shop.name}}\")\n}", "title": "app/routes/**\\/.ts" } ] @@ -4862,7 +4862,7 @@ "description": "Use the `liquid` helper to render a `Response` with Liquid content.", "tabs": [ { - "code": "import {authenticate} from \"~/shopify.server\"\n\nexport async function loader({ request }) {\n const {liquid} = authenticate.public.appProxy(request);\n\n return liquid(\"Hello {{shop.name}}\")\n}", + "code": "import {authenticate} from \"~/shopify.server\"\n\nexport async function loader({ request }) {\n const {liquid} = await authenticate.public.appProxy(request);\n\n return liquid(\"Hello {{shop.name}}\")\n}", "title": "app/routes/**\\/.ts" } ] @@ -5302,14 +5302,14 @@ { "filePath": "/server/types.ts", "syntaxKind": "MethodSignature", - "name": "__@iterator@577", + "name": "__@iterator@579", "value": "() => IterableIterator", "description": "Iterator" }, { "filePath": "/server/types.ts", "syntaxKind": "MethodSignature", - "name": "__@unscopables@579", + "name": "__@unscopables@581", "value": "() => { copyWithin: boolean; entries: boolean; fill: boolean; find: boolean; findIndex: boolean; keys: boolean; values: boolean; }", "description": "Returns an object whose properties have the value 'true'\r\nwhen they will be absent when used in a 'with' statement." }, diff --git a/packages/shopify-app-remix/src/server/authenticate/public/appProxy/types.ts b/packages/shopify-app-remix/src/server/authenticate/public/appProxy/types.ts index b67e604df9..76f036d286 100644 --- a/packages/shopify-app-remix/src/server/authenticate/public/appProxy/types.ts +++ b/packages/shopify-app-remix/src/server/authenticate/public/appProxy/types.ts @@ -27,7 +27,7 @@ interface Context { * import {authenticate} from "~/shopify.server" * * export async function loader({ request }) { - * const {liquid} = authenticate.public.appProxy(request); + * const {liquid} = await authenticate.public.appProxy(request); * * return liquid("Hello {{shop.name}}") * }