diff --git a/addon/authenticators/jwt.js b/addon/authenticators/jwt.js index febfa7d3..35ef68b1 100644 --- a/addon/authenticators/jwt.js +++ b/addon/authenticators/jwt.js @@ -96,7 +96,7 @@ export default TokenAuthenticator.extend({ if (wait > 0) { if (this.refreshAccessTokens) { - this.scheduleAccessTokenRefresh(dataObject.get(this.tokenExpireName), refreshToken); + this.scheduleAccessTokenRefresh(expiresAt, refreshToken); } return resolve(data); } else if (this.refreshAccessTokens) { diff --git a/package-lock.json b/package-lock.json index 16a146c7..7480656e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ember-simple-auth-token", - "version": "5.1.1", + "version": "5.1.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 39b20f42..1404af26 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-simple-auth-token", - "version": "5.1.1", + "version": "5.1.2", "description": "An authenticator and authorizer for Ember Simple Auth that is compatible with token-based authentication like JWT in Ember CLI applications.", "directories": { "doc": "doc",