Skip to content

Commit

Permalink
Fix app proxy auth docs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulomarg committed Nov 23, 2023
1 parent c0057c5 commit 4c948b7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .changeset/great-deers-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
Expand Down Expand Up @@ -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"
}
]
Expand Down Expand Up @@ -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"
}
]
Expand Down Expand Up @@ -2208,14 +2208,14 @@
{
"filePath": "/server/types.ts",
"syntaxKind": "MethodSignature",
"name": "__@iterator@577",
"name": "__@iterator@579",
"value": "() => IterableIterator<JSONValue>",
"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."
},
Expand Down Expand Up @@ -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"
}
]
Expand Down Expand Up @@ -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"
}
]
Expand Down Expand Up @@ -5302,14 +5302,14 @@
{
"filePath": "/server/types.ts",
"syntaxKind": "MethodSignature",
"name": "__@iterator@577",
"name": "__@iterator@579",
"value": "() => IterableIterator<JSONValue>",
"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."
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}}")
* }
Expand Down

0 comments on commit 4c948b7

Please sign in to comment.