Skip to content

Commit

Permalink
No longer required to use getAccessToken() if using the callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
dovy committed Jun 19, 2015
1 parent dde8b16 commit d642b86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ var utils = require('./utils'),

var Helpers = function(client){
this.settings = client.settings;
this.client = client;
this.accessTokenInactiveTimer = null;
this.accessTokenCreationTimer = null;
};
Expand Down Expand Up @@ -265,7 +266,7 @@ Helpers.prototype.eraseAccessToken = function(omitCallback) {
this.eraseCookie(this.getAccessTokenCookieName());
}
if (!!this.settings.expireCallback && !omitCallback) {
this.settings.expireCallback(this);
this.settings.expireCallback(this.client);
}
};

Expand Down

0 comments on commit d642b86

Please sign in to comment.