Skip to content

Commit

Permalink
Minor modifications in google callback URL
Browse files Browse the repository at this point in the history
  • Loading branch information
sikehish committed Jun 10, 2024
1 parent 2a51729 commit 888c596
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/pages/auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ function Login() {
login({ email, password });
};

console.log(import.meta.env.VITE_REACT_APP_API_URL)

const googleAuth = (e: any) => {
e.preventDefault()
window.open(
`/api/oauth/google/callback`,
"_self"
);
// window.open(
// `http://localhost:3000/api/oauth/google/callback`,
// "_self"
// );
window.location="http://langjam.us-east-1.elasticbeanstalk.com/api/oauth/google/callback"
};
// // OR //--> The below is returning undefined in Elastic Beanstalk
// const googleAuth = (e: any) => {
Expand Down

0 comments on commit 888c596

Please sign in to comment.