title: How to retrieve axios data from the promise
body: <p>I am currently trying to query my backend using axios and to that specific address I am sending with res.json an object and I am also able to see it with postaman. But when trying to build a function to retrieve it, my object looks like:Promise {pending}. How can i refactor my function ?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>   isAuthenticated = () =&gt; {
          return axios.get('https://myaddress/authenticate')
              .then(function (response) {
                  return response.data
              })
      };</code></pre>
  </div>
  </div>
  </p>