# Custom access token expiration time

**URL:** <https://community.auth0.com/t/custom-access-token-expiration-time/107913>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [May 26, 2023, 5:09pm UTC](https://community.auth0.com/t/custom-access-token-expiration-time/107913 "2023-05-26T17:09:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aedmonds](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@aedmonds](https://community.auth0.com/u/aedmonds)\
**Post date:** [May 26, 2023, 5:09pm UTC](https://community.auth0.com/t/custom-access-token-expiration-time/107913/1 "2023-05-26T17:09:56Z")

</div>

Is it possible to use actions to set the access token expiration to midnight of the next day?

This would give users a consistent experience where every day when they come to the website they need to log in the first time they access. As it is now they may or may not need to log in again based on what time they access based on what time they did the previous day, and it is possible to have to re-authenticate in the middle of their work.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 26, 2023, 11:07pm UTC](https://community.auth0.com/t/custom-access-token-expiration-time/107913/3 "2023-05-26T23:07:56Z")

</div>

Hi there @aedmonds !

> [@aedmonds](#):
>
> Is it possible to use actions to set the access token expiration to midnight of the next day?

It is not possible to adjust the expiration time of tokens from within an Action.

> [@aedmonds](#):
>
> As it is now they may or may not need to log in again based on what time they access based on what time they did the previous day, and it is possible to have to re-authenticate in the middle of their work.

This is typically addressed by [silent authentication](https://auth0.com/docs/authenticate/login/configure-silent-authentication) or [refresh tokens](https://auth0.com/docs/secure/tokens/refresh-tokens).

---

<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:** [June 9, 2023, 11:08pm UTC](https://community.auth0.com/t/custom-access-token-expiration-time/107913/4 "2023-06-09T23:08:10Z")

</div>

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