Authenticate Route

Viewed 20

I am trying to authenticate the route to avoid direct access to a login required page

router.get("/customerform", authenticateToken (req, res) => {
  res.sendFile(path.join(__dirname, "../public/customerform.html"));
});

this is not working

0 Answers
Related