im working on a webhook to take in finished webinar recordings.
I have followed the steps mentioned on the Zoom Docs and i have even copied the code directly from their example for Node. I can verify that my code is correctly hashing the token and is setting the correct information in the JSON object. Once again this is taken directly from the example from Zoom Docs. However when i try to verify, it doesnt work. Yes the site is live, with https, and the ENV variables are live as well. If anyone can help, i can provide the endpoint for you to test as well.
router.post("/verify", async (req, res) => {
console.log("Video Completed");
try {
console.log(req.body.payload.plainToken);
const token = crypto
.createHmac("sha256", process.env.ZOOM_APP_TOKEN)
.update(req.body.payload.plainToken)
.digest("hex");
console.log(token);
res.status(200);
res.json({
plainToken: req.body.payload.plainToken,
encryptedToken: token,
});
} catch (err) {
console.log(err);
res.status(500).send({ message: "Internal Server Error" });
}
});