MCPcopy Create free account
hub / github.com/Shopify/function-examples / loader

Function loader

sample-apps/discounts/app/routes/auth.$.jsx:3–7  ·  view source on GitHub ↗
({ request })

Source from the content-addressed store, hash-verified

1import { authenticate } from "../shopify.server";
2
3export async function loader({ request }) {
4 await authenticate.admin(request);
5
6 return null;
7}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected