fix: correct Google login handler function name

Rename handleGoogleLoginSuccess to handleGoogleLogin and update the onClick handler to use the correct function name. This fixes the client-side exception on the login page.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
soufiane 2025-11-18 02:30:01 +01:00
parent c0839dd081
commit 6f236ed1ce

View File

@ -51,7 +51,7 @@ export default function LoginPage() {
} }
}; };
const handleGoogleLoginSuccess = useGoogleLogin({ const handleGoogleLogin = useGoogleLogin({
onSuccess: async (tokenResponse) => { onSuccess: async (tokenResponse) => {
setIsGoogleLoading(true); setIsGoogleLoading(true);
console.log('🔑 Token Google reçu:', tokenResponse); console.log('🔑 Token Google reçu:', tokenResponse);
@ -158,7 +158,7 @@ export default function LoginPage() {
<Button <Button
type="button" type="button"
variant="outline" variant="outline"
onClick={() => handleGoogleLoginSuccess()} onClick={() => handleGoogleLogin()}
disabled={isGoogleLoading} disabled={isGoogleLoading}
isLoading={isGoogleLoading} isLoading={isGoogleLoading}
fullWidth fullWidth