Skip to content

Commit

Permalink
Merge pull request #282 from alechirsch/master
Browse files Browse the repository at this point in the history
Use pre-calulated value for expiresAt on restore
  • Loading branch information
fenichelar authored Aug 11, 2020
2 parents db32147 + d8914ed commit 0970f6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addon/authenticators/jwt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 0970f6a

Please sign in to comment.