Nuxt.js auth user loggedIn false

Viewed 13

Why is my userlogedin always false

Method login

async userLogin(){

  try {
    let response = await this.$auth.loginWith('local', { data: this.login })
    this.$auth.setUser(response.data.data);
    console.log(response.data.data)
  } catch (error) {
    console.log(error)
  }
}

enter image description here

0 Answers
Related