mirror of
https://github.com/scratchfoundation/aws-sts-helper.git
synced 2024-12-11 08:01:01 -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 => {
|
||||
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));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue