Skip to content

module authenticates even when has error #1842

@M-Barari

Description

@M-Barari

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 instead the res will be logged in console with status: 401.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions