# Expiration Time (exp) claim error in the ID token — larger time discrepancies

**URL:** <https://community.auth0.com/t/expiration-time-exp-claim-error-in-the-id-token-larger-time-discrepancies/67091>\
**Category:** Get Help\
**Tags:** expiration, id\_token, time, login, auth0\
**Created:** [July 29, 2021, 10:08pm UTC](https://community.auth0.com/t/expiration-time-exp-claim-error-in-the-id-token-larger-time-discrepancies/67091 "2021-07-29T22:08:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam.gipril](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adam.gipril/32/30846_2.png) [@adam.gipril](https://community.auth0.com/u/adam.gipril)\
**Post date:** [July 29, 2021, 10:08pm UTC](https://community.auth0.com/t/expiration-time-exp-claim-error-in-the-id-token-larger-time-discrepancies/67091/1 "2021-07-29T22:08:59Z")

</div>

Hi,

I’ve looked at a similar topic [here](https://community.auth0.com/t/expiration-time-exp-claim-error-in-the-id-token/64964), and am curious if something else might be going on in our application.

Ours is a Vue app that encounters the error upon invoking `handleRedirectCallback`. We’ve seen about 11.4k errors like this (from a relatively small set of sessions i.e., the same session sends many of the same error) in the same span of time in which we saw 405k successful logins. Checking a couple of the errors, the time discrepancies range at least from 5 hours to 37 hours. I’m skeptical that a user’s machine might be off by 37 hours or more, and am wondering what might be going on here.

Example:

```auto
Error: Expiration Time (exp) claim error in the ID token; current time (Thu Jul 29 2021 18:46:38 GMT-0500 (Central Daylight Time)) is after expiration time (Wed Jul 28 2021 04:47:39 GMT-0500 (Central Daylight Time))

```

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 30, 2021, 4:30pm UTC](https://community.auth0.com/t/expiration-time-exp-claim-error-in-the-id-token-larger-time-discrepancies/67091/3 "2021-07-30T16:30:22Z")

</div>

Hi @adam.gipril,

Welcome to the Auth0 Community!

I think you have already identified the problem; you have a user/users who’s machine is off time. It is more likely a single user’s machine is off by 37 hours vs. the Auth0 auth server being skewed by that amount.

---

<div class="post-metadata">

**Author:** ![adam.gipril](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adam.gipril/32/30846_2.png) [@adam.gipril](https://community.auth0.com/u/adam.gipril)\
**Post date:** [August 2, 2021, 4:49pm UTC](https://community.auth0.com/t/expiration-time-exp-claim-error-in-the-id-token-larger-time-discrepancies/67091/4 "2021-08-02T16:49:48Z")

</div>

I think that may be the case after looking further. We have some errors being reported on July 31 at 1:55 PM MDT, but the “current time” the user’s machine reported was August 1 at 11 AM CDT. After seeing that the “current time” value is calculated with `new Date(Date.now())` (see [here](https://github.com/auth0/auth0-spa-js/blob/56a8f62c61a1ea4b942e310db986356a76e220ec/src/jwt.ts#L162) for anyone coming to this later), that must be the issue.

Thanks for looking into it!

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [August 2, 2021, 5:02pm UTC](https://community.auth0.com/t/expiration-time-exp-claim-error-in-the-id-token-larger-time-discrepancies/67091/5 "2021-08-02T17:02:00Z")

</div>

No problem! Glad you got it sorted. Thanks for posting a follow up 😄

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 17, 2021, 5:02pm UTC](https://community.auth0.com/t/expiration-time-exp-claim-error-in-the-id-token-larger-time-discrepancies/67091/6 "2021-08-17T17:02:18Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
