From 98889fcf371d7bcfb9862497fbaf6ad8be3d1684 Mon Sep 17 00:00:00 2001 From: Colby Gutierrez-Kraybill Date: Thu, 16 Aug 2018 08:40:01 -0400 Subject: [PATCH] Parse JSON return --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index c3d1464..04304c8 100644 --- a/index.js +++ b/index.js @@ -51,12 +51,12 @@ const getTemporaryCredentials = (config, callback) => { }, err => { if (err) return callback(err, null); - return callback(null, newCredentials); + return callback(null, JSON.parse(newCredentials)); } ); }); } else { - return callback(null, old); + return callback(null, JSON.parse(old)); } }); };