that's not how password-based authentication works - there are other approaches but all of them rely on some sort of secret value (password, key, token value, ..) being available at the client side to prove the client is who they say they are, this is not avoidable.