Hello, I'm not sure and I can't find anywhere what are the types for the callback function of jwt, is it supposed to be custom type made by me or a type from jsonwebtoken
jwt.verify(token, process.env.JWT_SECRET as string, (err: any, user: any) => {
if (err) {
return res.sendStatus(403);
}
req.user = user;
next();
});