Skip to content

Commit

Permalink
set empty cookie on token refresh
Browse files Browse the repository at this point in the history
Per #15.
Recent feedback indicates that people trying without this are receiving 403.   Per the issue details, setting cookie at this point may allow things to work.
Unit tests pass either way.
  • Loading branch information
bewest committed Dec 24, 2020
1 parent 6a44446 commit 141dcb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions carelink.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ var Client = exports.Client = function (options) {
.then(response => {
axiosInstance.defaults.headers.common = {
'Authorization': `Bearer ${_.get(getCookie(CARELINKEU_TOKEN_COOKIE), 'value', '')}`,
'Cookie': ''
};
})
.catch(async function (error) {
Expand Down

0 comments on commit 141dcb8

Please sign in to comment.