diff --git a/lib/ueberauth/strategy/twitter.ex b/lib/ueberauth/strategy/twitter.ex index 9a30c32..024bb44 100644 --- a/lib/ueberauth/strategy/twitter.ex +++ b/lib/ueberauth/strategy/twitter.ex @@ -105,7 +105,7 @@ defmodule Ueberauth.Strategy.Twitter do {:ok, %{status_code: 401, body: _, headers: _}} -> set_errors!(conn, [error("token", "unauthorized")]) {:ok, %{status_code: status_code, body: body, headers: _}} when status_code in 200..399 -> - body = json_library().decode!(body) + body = Ueberauth.Config.json_library().decode!(body) conn |> put_private(:twitter_token, token)