Allow to use the legacy authentication API

This commit is contained in:
Adrian Kumpf
2020-12-28 20:12:19 +01:00
parent 2360f3d0d4
commit d825fc1723
25 changed files with 493 additions and 311 deletions

View File

@@ -61,8 +61,8 @@ defmodule TeslaApi.Auth do
{:ok, %Tesla.Env{status: 401} = e} ->
error = %Error{
reason: :authentication_failure,
message: "Failed to authenticate.",
reason: :invalid_credentials,
message: "Invalid email address and password combination",
env: e
}