Skip to content

Commit

Permalink
Fix this._deleteBearerToken is undefined error
Browse files Browse the repository at this point in the history
This context wasn't properly set in the catch block for refresh errors, so the token was never deleted.
  • Loading branch information
eatyourgreens committed Mar 2, 2018
1 parent f26d810 commit 9e2f32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ module.exports = new Model({
console.log(error);
this._deleteBearerToken();
return null;
});
}.bind(this));
},

_saveRedirectUri: function(redirectUri) {
Expand Down

0 comments on commit 9e2f32b

Please sign in to comment.