Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 131 forks source link

Feature Request: More specific error codes and messages for email auth integration #550

Open marcaaron opened 6 years ago

marcaaron commented 6 years ago

What feature are you missing? When attempting to sign in a user with a valid email but incorrect password the error code and message returned by GraphQLErrors is identical to the ones thrown when a user attempts to sign in with an unknown email address.

How could this feature look like in detail? Tradeoffs? Implement a new error code to differentiate between the case of an unknown user vs. a known user with incorrect password.

Is this the intended behavior? If so, how can such a differentiation be made?