fix: use backend API URL for Google OAuth
All checks were successful
Tests / Backend - Tests skipped: 7, passed: 27
THE-TIP-TOP-MULTIBRANCH/pipeline/head This commit looks good

This commit is contained in:
2026-08-20 23:36:54 +00:00
parent 12685c1b22
commit a40a62d600

View File

@@ -17,9 +17,11 @@ export default function Connexion() {
// Navigation pleine page (et non fetch) : le flux OAuth passe par des // Navigation pleine page (et non fetch) : le flux OAuth passe par des
// redirections vers Google puis retour sur /auth/callback. // redirections vers Google puis retour sur /auth/callback.
const handleGoogleLogin = () => { const API_URL = import.meta.env.VITE_API_URL || ''
window.location.href = '/api/auth/google'
} const handleGoogleLogin = () => {
window.location.href = `${API_URL}/api/auth/google`
}
const handleSubmit = async (e) => { const handleSubmit = async (e) => {
e.preventDefault() e.preventDefault()