diff --git a/src/modules/auth/components/ForgotPasswordForm.jsx b/src/modules/auth/components/ForgotPasswordForm.jsx index d89d437..ef0a8c1 100644 --- a/src/modules/auth/components/ForgotPasswordForm.jsx +++ b/src/modules/auth/components/ForgotPasswordForm.jsx @@ -141,7 +141,7 @@ export function ForgotPasswordForm({ className, ...props }) { } const handleGoogleSignIn = () => { - window.location.href = '/api/auth/google' + window.location.href = `${import.meta.env.VITE_API_URL}/auth/google` } // ── Step 2: OTP ───────────────────────────────────────────────────────────── diff --git a/src/modules/auth/components/LoginForm.jsx b/src/modules/auth/components/LoginForm.jsx index 290a48d..d235232 100644 --- a/src/modules/auth/components/LoginForm.jsx +++ b/src/modules/auth/components/LoginForm.jsx @@ -95,7 +95,7 @@ export function LoginForm({ className, ...props }) { } const handleGoogle = () => { - window.location.href = '/api/auth/google' + window.location.href = `${import.meta.env.VITE_API_URL}/auth/google` } if (otpEmail) {