es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: AWS-AMPLIFY-CLI

Se produjo un error no controlado en tiempo de ejecución while verificando el estado del usuario.

import { withAuthenticator, AmplifySignOut } from ‘@aws-amplify/ui-react’ import { Auth } from ‘aws-amplify’ import { useState, useEffect } from ‘react’ function Profile() { const [user, setUser] = useState(null) useEffect(() => { checkUser() }, []) async function checkUser() { const user = await Auth.currentAuthenticatedUser() setUser(user); //Ocurrió un error en } if . . . Read more