the component
the code of usuarioAutenticado()
usuarioAutenticado()
the result of the console and localStorage: