# How JWT Expiration works?

**URL:** <https://community.auth0.com/t/how-jwt-expiration-works/93049>\
**Category:** JWT.io\
**Created:** [October 25, 2022, 12:16pm UTC](https://community.auth0.com/t/how-jwt-expiration-works/93049 "2022-10-25T12:16:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![venukrishna.tumuluri](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/venukrishna.tumuluri/32/36795_2.png) [@venukrishna.tumuluri](https://community.auth0.com/u/venukrishna.tumuluri)\
**Post date:** [October 25, 2022, 12:16pm UTC](https://community.auth0.com/t/how-jwt-expiration-works/93049/1 "2022-10-25T12:16:53Z")

</div>

hey there,

I am new to using JWT and I was wondering how the expiration works.

I looked into jwt in march 2022 and read the max time for expiry is 2 hours but when I am looking now it says the max expiration is 24 hours. I just wanted to know if something changed lately or it that been always the case. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [October 26, 2022, 1:20pm UTC](https://community.auth0.com/t/how-jwt-expiration-works/93049/3 "2022-10-26T13:20:03Z")

</div>

hi @venukrishna.tumuluri

Do you mean an access token or an identity token? Each has different expiration settings. The ID token has a default of 10 hours, and the access token of 24 hours, but these can be changed (including to be longer).

John

---

<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:** [December 20, 2022, 10:33pm UTC](https://community.auth0.com/t/how-jwt-expiration-works/93049/4 "2022-12-20T22:33:23Z")

</div>

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