Skip to content

Commit

Permalink
Merge pull request #767 from manikumarreddyu/googleauth
Browse files Browse the repository at this point in the history
done
  • Loading branch information
manikumarreddyu authored Nov 4, 2024
2 parents 6f59961 + ca78bd2 commit 6d40853
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/routes/googleauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/');
}
);

Expand Down
15 changes: 15 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -63,4 +64,4 @@
"tailwindcss": "^3.4.13",
"vite": "^5.4.8"
}
}
}

0 comments on commit 6d40853

Please sign in to comment.