title: Axios: Users attempts before Login
body: <p>when i send &quot;EnvioLogin&quot; with the correct email / password i get the access token from &quot;/login&quot; but i cant get &quot;/users&quot; after that only  before
  When i inspect in my browser i get this: <a href="https://imgur.com/NZFXeiJ" rel="nofollow noreferrer">https://imgur.com/NZFXeiJ</a> <a href="https://imgur.com/B2DCebE" rel="nofollow noreferrer">https://imgur.com/B2DCebE</a></p>
  <p>How can i run created hooks after the user attempts to login?</p>
  <pre><code>import axios from &quot;axios&quot;;
  export default {
    name: &quot;login&quot;,
  
  
    data() {
      return {
        showError: false,
        email: &quot;&quot;,
        password: &quot;&quot;,
      };
    },
       async created() {
      const response = await axios.get(&quot;api/users&quot;, {
        headers: {
          Authorization: &quot;Bearer &quot; + localStorage.getItem(&quot;token&quot;)
        }
      });
  
      console.log(response);
    },
  
    methods: {
      async EnvioLogin() {
        try {
          const response = await axios.post(&quot;api/auth/login&quot;, {
            email: this.email,
            password: this.password,
          });
          localStorage.setItem(&quot;token&quot;, response.data.token);
          const status = JSON.parse(response.status);
          if (status == &quot;200&quot;) {
            console.log(response);
            this.$router.push(&quot;intermediorotas&quot;);
            this.showLogin = false;
          }
        } catch (error) {
          this.showError = true;
          setTimeout(() =&gt; {
            this.showError = false;
          }, 2000);
        }
      },
    },
  </code></pre>