signin/signup is now working. no checks tho

This commit is contained in:
quoije
2023-05-10 16:53:51 -04:00
parent 5f5ca2b344
commit ef1b411c12
5 changed files with 60 additions and 53 deletions
+1
View File
@@ -16,6 +16,7 @@ verifyToken = (req, res, next) => {
return res.status(401).send({ message: "non autorisé lol" });
}
req.userId = decoded.id;
req.userName = decoded.name;
next();
});
};