mirror of
https://github.com/scratchfoundation/aws-sts-helper.git
synced 2024-12-11 16:11:02 -05:00
Parse JSON return
This commit is contained in:
parent
8ba9dedd62
commit
98889fcf37
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -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));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue