Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module authenticates even when has error #1842

Open
M-Barari opened this issue Mar 25, 2023 · 1 comment
Open

module authenticates even when has error #1842

M-Barari opened this issue Mar 25, 2023 · 1 comment
Labels

Comments

@M-Barari
Copy link

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.

@zavvla
Copy link

zavvla commented Aug 5, 2023

any?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants