text: const express = require("express");
  const router = express.Router();
  const getAccessTokenFromCode = require("../utils/google-access-token");
  const getGoogleProfile = require("../utils/google-get-profile");
  // const verifyAccessToken = require("../middleware/verifyAccessToken");
  
  // Get User Profile
  router.get("/", async (req, res) => {
    try {
      const code = req.headers["authorization"];
      const accessToken = await getAccessTokenFromCode(code);
      const profile = await getGoogleProfile(accessToken);
      console.log("accessToken", accessToken);
      res.status(200).json({ profile });
    } catch (error) {
      res.status(500).json({ errorMessage: error });
      console.log(error);
    }
  });
  
  module.exports = router;
  