parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Auth adapter error codes should be specific

Open dblythy opened this issue 2 years ago • 2 comments

New Feature / Enhancement Checklist

Current Limitation

Currently, if an additional adapter is used, and login is attempted without additional data is thrown, error code -1 is thrown. Also, if there is a throw from within validateLogin, the error code is 141.

Feature / Enhancement Description

The error codes for each of these cases should be specific, so UI can update to allow users to provide additional auth data.

Example Use Case

Alternatives / Workarounds

3rd Party References

dblythy avatar Jun 24 '23 03:06 dblythy

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

I assume this would be breaking; added the label.

mtrezza avatar Jun 24 '23 09:06 mtrezza