abp
abp copied to clipboard
Add Specific Error Codes for Authentication Failures
Hi, Currently, all authentication failures return the same error code (InvalidGrant), making it difficult to distinguish between different failure reasons on the front end. Introducing specific error codes (account_locked, account_inactive, and invalid_grant) will allow us to check whether an account is locked out, inactive, or if the credentials are invalid, enabling the front end to handle these scenarios more effectively.