Customize login error response
Is there a simple way to customize the login error codes? I see that we get the specific response in the backend (invalid password, user doesn’t exist) - but it’s generalized when passed to the client (“invalid password or user” — or something like that).
I understand the intent here from a security perspective, but in my use case, I’d rather pass the specific response to the user (and be able to interpret and customize the message depending on the error codes thrown).
Is there a simple way to do this?
I’m primarily trying to alert the user if the email account that they’re trying to log in with doesn’t exist - so they know if they’re facing a password issue, or if they’re using the wrong email.
Thanks!
I understand the intent here from a security perspective, but in my use case, I’d rather pass the specific response to the user (and be able to interpret and customize the message depending on the error codes thrown).
Is there a simple way to do this?
I’m primarily trying to alert the user if the email account that they’re trying to log in with doesn’t exist - so they know if they’re facing a password issue, or if they’re using the wrong email.
Thanks!