Well, my question is I want to pass some variable from the first middleware to another middleware, and I tried doing this, but there was \"req.somevariable is a
req.somevariable
That's because req and res are two different objects.
req
res
You need to look for the property on the same object you added it to.