Closed mwangimuringi closed 1 week ago
import { errorHandler } from "./error";
export const verifyToken = (req, res, next) => { const token = req.cookies.access_token;
if (!token) { return next(errorHandler(401, "Unauthorized", "No token provided")); }
};
import { errorHandler } from "./error";
export const verifyToken = (req, res, next) => { const token = req.cookies.access_token;
};