getAuthContextData = async (req, res) => {
  try {
    const result = await UserContext.findOne({ user: req.userId });

    if (!result) {
      return res.status(404).json({ message: "Not found" });
    }

    const userContextData = {
      firstAdded: formatCreatedAt(result.createdAt),
      ip: result.ip,
      country: result.country,
      city: result.city,
      browser: result.browser,
      platform: result.platform,
      os: result.os,
      device: result.device,
      deviceType: result.deviceType,
    };

    res.status(200).json(userContextData);
  } catch (error) {
    res.status(500).json({
      message: "Internal server error",
    });
  }
}
@route GET /auth/context-data/primary