diff --git a/backend/routes/oauthRouter.ts b/backend/routes/oauthRouter.ts index 508c248..6243281 100644 --- a/backend/routes/oauthRouter.ts +++ b/backend/routes/oauthRouter.ts @@ -28,12 +28,12 @@ router.get('/google/callback', passport.authenticate('google', { session: false, }); // Redirect to the success URL - if(proces.env.NODE_ENV=="aws-eb") res.redirect(`/success`); + if(process.env.NODE_ENV=="aws-eb") res.redirect(`/success`); else res.redirect(`${process.env.CLIENT_URL}/success`); } else { // Redirect to the failure URL - f(proces.env.NODE_ENV=="aws-eb") res.redirect(`/failed`); - res.redirect(`${process.env.CLIENT_URL}/failed`); + if(process.env.NODE_ENV=="aws-eb") res.redirect(`/failed`); + else res.redirect(`${process.env.CLIENT_URL}/failed`); } });