title: vueJS - JWT Auth - redirect issue
body: <p>I'm coding an POS-system in laravel and vuejs. To login I'm using JWT-auth. Now if there is a already a "cash session" the system needs to redirect to a vue-route <code>/Dashboard</code>, if not you need to redirect to <code>/Cash</code>. Now I've tried various things but nothing works. It always redirect to <code>/Cash</code>. </p>
  
  <p>Does anyone have a solution?</p>
  
  <pre><code>methods: {
          login() {
              let app = this;
              this.$auth.login({
                  params: {
                      username: app.username,
                      password: app.password
                  },
                  success: function () {
                  },
                  error: function (resp) {
                      alert('Error: ' + resp.response.data.msg)
                  },
                  redirect: app.redirectURL(),
                  fetchUser: true
              });
          },
  
          setText(gebruiker) {
              this.buttonText = gebruiker;
              this.username = gebruiker;
          },
  
          redirectURL () {
              let cashActive = false;
              axios.get('cash/active').then(response =&gt; {
                  console.log(response.data.active);
                  cashActive = response.data.active;
              });
              console.log("Cash Active: " + cashActive);
              if (!cashActive) {
                  console.log("Return /Cash");
                  return "Cash";
              } else {
                  console.log("Return /dashboard");
                  return "/Dashboard";
              }
          }
      }
  </code></pre>
  
  <p>EDIT: I've tried asynchronous function, but redirect still doesn't work. My page doesn't redirect. There must be an issue with what I return in the function redirectURL. Can anyone help? </p>
  
  <pre><code>  methods: {
          login() {
              let app = this;
              this.$auth.login({
                  params: {
                      username: app.username,
                      password: app.password
                  },
                  success: function () {
                  },
                  error: function (resp) {
                      alert('Error: ' + resp.response.data.msg)
                  },
                  redirect: app.redirectURL(),
                  fetchUser: true
              });
          },
  
          setText(gebruiker) {
              this.buttonText = gebruiker;
              this.username = gebruiker;
          },
  
          async redirectURL () {
              let cashActive = await axios.get('cash/active').then(response =&gt; {
                  //console.log(response.data.active);
                  return response.data.active;
              });
              console.log("Cash Active: " + cashActive);
              if (!cashActive) {
                  console.log("Return /cash");
                  return "/cash";
              } else {
                  console.log("Return /dashboard");
                  return "/dashboard";
              }
          }
      },
  
  }
  </code></pre>