Receiving data from external source in Shopify Node app

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

Nevermind, I overlooked it, it was a simple Express condition

Hi iam kinda stuck with this too do you have any docs on how to do this in my case i want a endpoint in the node app where the data will be coming from outside to create a product

Mind expounding what the express condition was ?

Did you find a way to resole this ?