Closed charIeszhao closed 1 year ago
Calculate the expiresAt by requestedAt + expiresIn, which ensures the calculated result is always smaller than the actual exp property in token claims.
expiresAt
requestedAt + expiresIn
exp
expiresAt = requestedAt + actual request time + expiresIn
Should fix #518
N/A
.changeset
Discussed and decided to add a backward shifted time (60s) to the `expireAt` result.
Summary
Calculate the
expiresAt
byrequestedAt + expiresIn
, which ensures the calculated result is always smaller than the actualexp
property in token claims.Should fix #518
Testing
N/A
Checklist
.changeset