From 888c5965f20a9cfc65a6a33edab9825ac797e25c Mon Sep 17 00:00:00 2001 From: sikehish Date: Mon, 10 Jun 2024 09:03:20 +0530 Subject: [PATCH] Minor modifications in google callback URL --- frontend/src/pages/auth/Login.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/auth/Login.tsx b/frontend/src/pages/auth/Login.tsx index 461053d..378f0c2 100644 --- a/frontend/src/pages/auth/Login.tsx +++ b/frontend/src/pages/auth/Login.tsx @@ -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) => {