Solutionunvalidated
You are sending a `GET` request with `axios` so you can just remove the `req.body.xyz` parts — In the first instance I would just refactor your code. Tension: If you are not using a body-parser to parse incoming `POST` requests then `req.body` will not be accessible. Outcome: email = req.headers["email"] || req.headers?.email || null;.
07b98d09-6e11-430d-ba0e-2abf2901a539
You are sending a GET request with axios so you can just remove the req.body.xyz parts — In the first instance I would just refactor your code. Tension: If you are not using a body-parser to parse incoming POST requests then req.body will not be accessible. Outcome: email = req.headers["email"] || req.headers?.email || null;.