0

I'm on "@nuxt": "2.15.8" and "@nuxtjs/auth": "^4.9.1" . I don't know what happened recently but a block of codes that was working perfectly, now has some major issue!!

async login(payload){
  try{
    let res = await this.$auth.loginWith('local',{ data: payload })
    console.log('res',res)
  }catch(e){
    console.log('err',e)
  }
}

even when I get status:401 from backend, the module still authentcate the use and won't go to catch.

Mojtaba Barari
  • 1,127
  • 1
  • 15
  • 49

0 Answers0