Parse JSON return

This commit is contained in:
Colby Gutierrez-Kraybill 2018-08-16 08:40:01 -04:00
parent 8ba9dedd62
commit 98889fcf37

View file

@ -51,12 +51,12 @@ const getTemporaryCredentials = (config, callback) => {
}, },
err => { err => {
if (err) return callback(err, null); if (err) return callback(err, null);
return callback(null, newCredentials); return callback(null, JSON.parse(newCredentials));
} }
); );
}); });
} else { } else {
return callback(null, old); return callback(null, JSON.parse(old));
} }
}); });
}; };