Hello,
I’m using the Shopify CLI with NodeJS.
I need a post endpoint. This endpoint receives data from an external source. This source cannot send the headers or queries that Shopify needs.
I’m kind of stuck because of the lines in index.js
app.use("/api/*", shopify.validateAuthenticatedSession());
app.use("/*", shopify.ensureInstalledOnShop(), async (_req, res, _next) => {
Using a middleware, I’m able to add
req.query.shop and
req.query.host
But it still needs the authorization header
This is the log I’m getting on the console
Running validateAuthenticatedSession undefined
Missing Bearer token in authorization header | {isOnline: false}
Error when loading session from storage: Error: Missing Bearer token in authorization header undefined
Trying to do something simple but unfortunately, it isn’t. Any advice?
Thanks