[Vuejs]-Vuejs 2 – vue-auth JWT token not possible to safe

0👍

You should save the access_token in the success case.

this.$auth.login({
  data: {
    username: this.model.email,
    password: this.model.password
  },
  success: function (response) {
    alert(response)
    console.log(response)
    this.$auth.token('access_token', response.data.access_token)
  }

Leave a comment