From e51f29c5d2dcce560bc0acd999b2fc692b9c928d Mon Sep 17 00:00:00 2001 From: MathieuSevignyLavallee <89943988+MathieuSevignyLavallee@users.noreply.github.com> Date: Sun, 29 Sep 2024 16:37:08 -0400 Subject: [PATCH] ajusted button to redirect to good route --- client/src/pages/AuthSelection/AuthSelection.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/client/src/pages/AuthSelection/AuthSelection.tsx b/client/src/pages/AuthSelection/AuthSelection.tsx index d619c7f..b623a90 100644 --- a/client/src/pages/AuthSelection/AuthSelection.tsx +++ b/client/src/pages/AuthSelection/AuthSelection.tsx @@ -28,6 +28,10 @@ const AuthSelection: React.FC = () => { // Logique d'authentification pour Simple Login console.log('Simple Login Data:', simpleLoginData); }; + const handleAuthLogin = (provider: string) => { + window.location.href = 'http://localhost:3000/api/auth/' + provider; + }; + return (