nuxt-community / auth-module

Zero-boilerplate authentication support for Nuxt 2
https://auth.nuxtjs.org
MIT License
1.93k stars 925 forks source link

How to can Login with google Error message ? #1713

Open ifat420 opened 2 years ago

ifat420 commented 2 years ago

On click Login with google button it redirects me to choose the account page. After choice the account It redirect me to the login page .

I send google code into the backend It’s check if the user exists or not. If not it returns {detail: "Incorrect email or password"} this error. How can I catch this error?

my nuxt auth config

google: {
        clientId: '1053563765862-24dc8gnj33207u4etquovvbjvnsj13ae.apps.googleusercontent.com',
        codeChallengeMethod: '',
        responseType: 'code',
        endpoints: {
          token: `${apiUrl}/api/v1/login/google`,
          userInfo: `${apiUrl}/api/v1/users/me`
        },
      }
prabodhana commented 2 years ago

I have the same issue. Did you find any solution for this?