Skip to content

Commit

Permalink
MInor syntax issues resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
sikehish committed Jun 10, 2024
1 parent 78c74e5 commit f94db7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/routes/oauthRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
});

Expand Down

0 comments on commit f94db7e

Please sign in to comment.