const verifyTokenCtrl = async (req: Request, res: Response) => {
  try {
    const { token } = req.body;
    const decoded: any = jwt.verify(token, process.env.SECRET_KEY, (err) => {
      if (err) return res.status(400).json({ success: false, errorCode: "InvalidToken" });
    });
    res.status(200).json({
      success: true,
      msg: "Verify token successful",
      decoded,
    });
  } catch (error) {