From 6f63e4877a74ac2b7327f8c11be66a9aefdb8a05 Mon Sep 17 00:00:00 2001 From: sikehish Date: Mon, 10 Jun 2024 09:29:18 +0530 Subject: [PATCH] Minor modifications in google callback URL --- frontend/src/pages/auth/Login.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/auth/Login.tsx b/frontend/src/pages/auth/Login.tsx index b32b5dd..ca48818 100644 --- a/frontend/src/pages/auth/Login.tsx +++ b/frontend/src/pages/auth/Login.tsx @@ -20,10 +20,11 @@ function Login() { const googleAuth = (e: any) => { e.preventDefault() window.open( - `http://langjam.us-east-1.elasticbeanstalk/api/oauth/google/callback`, + `/api/oauth/google/callback`, "_self" ); }; + }; // // OR //--> The below is returning undefined in Elastic Beanstalk // const googleAuth = (e: any) => { // e.preventDefault()