diff --git a/controllers/linkedin.js b/controllers/linkedin.js index cac9651..10106b9 100644 --- a/controllers/linkedin.js +++ b/controllers/linkedin.js @@ -22,7 +22,7 @@ const authenticateUser = (req, res) => { res.redirect(authUrl); }; -const callback = async (req, res) => { +const handleCallback = async (req, res) => { const { code } = req.query; try { @@ -61,6 +61,6 @@ const getUserProfile = async (req, res) => { module.exports = { authenticateUser, - callback, + handleCallback, getUserProfile, }; diff --git a/package.json b/package.json index 1a3a121..980aa6e 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,10 @@ "axios": "^0.21.1", "dotenv": "^8.2.0" }, - "author": "", - "license": "ISC" -} \ No newline at end of file + "author": "ExostFlash", + "license": "ISC", + "repository": { + "type": "git", + "url": "ssh://git@git.lehub.tf:2222/MecDu.Dev/cvgen.git" + } +} diff --git a/routes/api.routes.js b/routes/api.routes.js index bded0fd..fb2c4d9 100644 --- a/routes/api.routes.js +++ b/routes/api.routes.js @@ -8,7 +8,7 @@ const linkedinController = require("../controllers/linkedin"); router.get("/auth/linkedin", linkedinController.authenticate); // Callback route for LinkedIn OAuth2 -router.get("/auth/linkedin/callback", linkedinController.callback); +router.get("/auth/linkedin/callback", linkedinController.handleCallback); // Route for fetching user profile information router.get("/profile", linkedinController.getProfile);