From 58e7fcf733dd325f6407f00b37420fd85a8df2f0 Mon Sep 17 00:00:00 2001 From: Alec Hirsch Date: Tue, 11 Aug 2020 11:55:00 -0400 Subject: [PATCH 1/2] use precalulated value for expiresAt on restore --- addon/authenticators/jwt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { From d8914ed4503e4b76fc82d9b2486a9588cb3609fb Mon Sep 17 00:00:00 2001 From: Alec Hirsch Date: Tue, 11 Aug 2020 12:35:59 -0400 Subject: [PATCH 2/2] v5.1.2 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",