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

Issues with signup error handling #32

Open
ivanparramartinez opened this issue Jun 23, 2024 · 0 comments
Open

Issues with signup error handling #32

ivanparramartinez opened this issue Jun 23, 2024 · 0 comments

Comments

@ivanparramartinez
Copy link

ivanparramartinez commented Jun 23, 2024

I'm having an issue when implementing the Email/Password authentication. When using the signup method, and for example the user is already registered or the fields are not filled. I'm getting this in the response, which is not explaining anything about the error:

Captura de pantalla 2024-06-23 a la(s) 12 20 00 a  m

This is the actual use of signup in the embedded files:

Captura de pantalla 2024-06-23 a la(s) 12 19 52 a  m

And I think it might be something about the H3Error handling inside Nuxt. I don't get what's the issue. But I got to a probably solution, and it's in this code:

Captura de pantalla 2024-06-23 a la(s) 2 14 35 a  m
Captura de pantalla 2024-06-23 a la(s) 2 14 40 a  m

Using a way to extend the H3Error class and making a constructor to introduce the message the way it's needed. I don't know if this is suitable for you, so maybe I can push it as a request. When I do this, this is the response I get:

Captura de pantalla 2024-06-23 a la(s) 2 15 47 a  m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant