diff --git a/src/helpers.js b/src/helpers.js index 0f56450..b12f348 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -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; }; @@ -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); } };