From 237bfa718e3747374c7501ee766002f3c6ae48b6 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Sun, 23 Dec 2018 14:13:11 -0800 Subject: [PATCH] Update lib/ueberauth/strategy/twitter.ex Co-Authored-By: snewcomer --- lib/ueberauth/strategy/twitter.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ueberauth/strategy/twitter.ex b/lib/ueberauth/strategy/twitter.ex index 024bb44..8909bb7 100644 --- a/lib/ueberauth/strategy/twitter.ex +++ b/lib/ueberauth/strategy/twitter.ex @@ -111,7 +111,7 @@ defmodule Ueberauth.Strategy.Twitter do |> put_private(:twitter_token, token) |> put_private(:twitter_user, body) {:ok, %{status_code: _, body: body, headers: _}} -> - body = json_library().decode!(body) + body = Ueberauth.Config.json_library().decode!(body) error = List.first(body["errors"]) set_errors!(conn, [error("token", error["message"])]) end