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)); } }); };