abp icon indicating copy to clipboard operation
abp copied to clipboard

Add Specific Error Codes for Authentication Failures

Open alihdev opened this issue 5 months ago • 0 comments

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.

alihdev avatar Sep 03 '24 10:09 alihdev