feat: show used connected

This commit is contained in:
Rodolfo Ruiz
2025-08-04 21:12:50 -06:00
parent 7a6ac15aad
commit c3a3ea1d84
2 changed files with 14 additions and 5 deletions

View File

@@ -11,17 +11,17 @@ export default function LoginPage() {
return (
<Box display="flex" flexDirection="column" alignItems="center" mt={10}>
<Typography variant="h4" gutterBottom>
Iniciar sesión
Sign in with Google
</Typography>
<GoogleLogin
onSuccess={(credentialResponse) => {
const user = jwt_decode(credentialResponse.credential);
const user = jwtDecode(credentialResponse.credential);
login(user);
navigate('/');
}}
onError={() => {
console.log('Error al iniciar sesión');
console.log('Error signing in');
}}
/>
</Box>