Skip to content

Commit

Permalink
fix(refresh): fix _tokenExpiresAt property
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoPedroAS51 authored and pi0 committed Mar 15, 2020
1 parent 95eb56d commit 9fbfc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class TokenExpirationStatus {
let decodedToken, tokenExpiration
const _tokenIssuedAt = getProp(result, this.scheme.options.issuedAt) || Date.now()
const _tokenTTL = (getProp(result, this.scheme.options.expiresIn) || this.scheme.options.token.maxAge) * 1000
const _tokenExpiresAt = getProp(result, this.scheme.options.expiresAt) * 1000 || _tokenIssuedAt + _tokenTTL
const _tokenExpiresAt = getProp(result, this.scheme.options.expiresAt) || _tokenIssuedAt + _tokenTTL

try {
decodedToken = jwtDecode(token)
Expand Down

0 comments on commit 9fbfc82

Please sign in to comment.