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

Auth errors from Strapi being mapped to generic 500 #335

Open
kwiat1990 opened this issue Apr 7, 2023 · 0 comments
Open

Auth errors from Strapi being mapped to generic 500 #335

kwiat1990 opened this issue Apr 7, 2023 · 0 comments
Labels
question Further information is requested

Comments

@kwiat1990
Copy link

kwiat1990 commented Apr 7, 2023

I use social login providers for login functionality on my page. If everything works fine on Strapi side, there’s also no problem on Nuxt side. But, I have an use case, in which a user can’t log in with a different login provider if he already used some other one. In six a case Strapi throws an error Email already taken, which then gets swallowed by Nuxt module (this plugin) and mapped to 500 with a generic error message, so it’s impossible to track down the original cause of the error to provide the user some meaningful output.

Is there some way to propagate such errors and handle them in Nuxt app?

I use @nuxtjs/strapi 1.9.0 with nuxt 3.3.3.

@kwiat1990 kwiat1990 added the question Further information is requested label Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant