Best way to handle bad login
On my client I get
What is the best to check if the request failed due to bad credentials? Checking status code is 400 and message is
Maybe this info will change in the future.
Will not be a good idea to implement a more detailed exception like
AuthException(message: Invalid login credentials, statusCode: 400)What is the best to check if the request failed due to bad credentials? Checking status code is 400 and message is
Invalid login credentials?Maybe this info will change in the future.
Will not be a good idea to implement a more detailed exception like
BadCredentialsAuthException?