# What are the best practices regarding token expiration

**URL:** <https://community.auth0.com/t/what-are-the-best-practices-regarding-token-expiration/96294>\
**Category:** Get Help\
**Tags:** other, general-architecture-question\
**Created:** [December 12, 2022, 7:06pm UTC](https://community.auth0.com/t/what-are-the-best-practices-regarding-token-expiration/96294 "2022-12-12T19:06:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vuscan.marius](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vuscan.marius/32/40937_2.png) [@vuscan.marius](https://community.auth0.com/u/vuscan.marius)\
**Post date:** [December 12, 2022, 7:06pm UTC](https://community.auth0.com/t/what-are-the-best-practices-regarding-token-expiration/96294/1 "2022-12-12T19:06:58Z")

</div>

Hello,

I’ve configured a single-page application with refresh tokens and refresh token expiration. I am curious to know what would be the best practices for setting the ID token expiration, reuse interval, absolute lifetime and inactivity lifetime.

Thank you

---

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [December 13, 2022, 6:02pm UTC](https://community.auth0.com/t/what-are-the-best-practices-regarding-token-expiration/96294/3 "2022-12-13T18:02:11Z")

</div>

Hi @vuscan.marius,

Welcome to the Auth0 Community!

> [@vuscan.marius](#):
>
> what would be the best practices for setting the ID token expiration, reuse interval, absolute lifetime and inactivity lifetime

The short answer is that it is case-dependent. Generally, the ID token expiration has a default expiration of 36000 seconds (10 hours). However, if security is a concern, then you can shorten the time period before the token expires. [Refence doc: [ID Tokens](https://auth0.com/docs/secure/tokens/id-tokens#id-token-lifetime)]

I recommend reviewing our [Token Best Practices](https://auth0.com/docs/secure/tokens/token-best-practices) documentation as well.

Please let me know if you have any additional questions. I’d be happy to help!

Thanks,  
Rueben

---

<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 27, 2022, 6:02pm UTC](https://community.auth0.com/t/what-are-the-best-practices-regarding-token-expiration/96294/4 "2022-12-27T18:02:24Z")

</div>

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