From ca78bd2411d2d3cb4fb186857b430a7f6cae6063 Mon Sep 17 00:00:00 2001 From: manikumarreddyu <133508962+manikumarreddyu@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:11:43 +0530 Subject: [PATCH] done --- backend/routes/googleauth.js | 4 ++-- frontend/package-lock.json | 15 +++++++++++++++ frontend/package.json | 3 ++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/backend/routes/googleauth.js b/backend/routes/googleauth.js index dd9f7509..4754d23c 100644 --- a/backend/routes/googleauth.js +++ b/backend/routes/googleauth.js @@ -8,10 +8,10 @@ router.get('/google', passport.authenticate('google', { scope: ['profile', 'emai // Callback URL for Google router.get( '/google/callback', - passport.authenticate('google', { failureRedirect: 'http://localhost:5173/login' }), + passport.authenticate('google', { failureRedirect: 'https://agro-tech-ai.vercel.app/login' }), (req, res) => { // Redirect to the dashboard or home page on success - res.redirect('http://localhost:5173/'); + res.redirect('https://agro-tech-ai.vercel.app/'); } ); diff --git a/frontend/package-lock.json b/frontend/package-lock.json index d984478c..41556de6 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -37,6 +37,7 @@ "react-bootstrap": "^2.10.5", "react-chartjs-2": "^5.2.0", "react-dom": "^18.3.1", + "react-fontawesome": "^1.7.1", "react-icons": "^5.3.0", "react-leaflet": "^4.2.1", "react-modal": "^3.16.1", @@ -6457,6 +6458,20 @@ "react": "^18.3.1" } }, + "node_modules/react-fontawesome": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/react-fontawesome/-/react-fontawesome-1.7.1.tgz", + "integrity": "sha512-kottReWW1I9Uupub6A5YX4VK7qfpFnEjAcm5zB4Aepst7iofONT27GJYdTcRsj7q5uQu9PXBL7GsxAFKANNUVg==", + "dependencies": { + "prop-types": "^15.5.6" + }, + "engines": { + "node": ">=0.10.0" + }, + "peerDependencies": { + "react": ">=0.12.0" + } + }, "node_modules/react-icons": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.3.0.tgz", diff --git a/frontend/package.json b/frontend/package.json index d971eef5..b92db790 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -39,6 +39,7 @@ "react-bootstrap": "^2.10.5", "react-chartjs-2": "^5.2.0", "react-dom": "^18.3.1", + "react-fontawesome": "^1.7.1", "react-icons": "^5.3.0", "react-leaflet": "^4.2.1", "react-modal": "^3.16.1", @@ -63,4 +64,4 @@ "tailwindcss": "^3.4.13", "vite": "^5.4.8" } -} \ No newline at end of file +}