Authentication error responses
What's the best way for ASP.NET Core Web Api to send authentication error responses to a frontend, so it' clear for users but still secure?
Should I share more detail information to the frontend like: incorrect password, user already exist, etc.
or should I send more general error response like: Registration fail due to invalid input
Should I share more detail information to the frontend like: incorrect password, user already exist, etc.
or should I send more general error response like: Registration fail due to invalid input