# Access token expiration \>30 days

**URL:** <https://community.auth0.com/t/access-token-expiration-30-days/57536>\
**Category:** Get Help\
**Tags:** token-expiration, api-keys\
**Created:** [February 8, 2021, 8:32am UTC](https://community.auth0.com/t/access-token-expiration-30-days/57536 "2021-02-08T08:32:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smirauta](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/smirauta/32/15135_2.png) [@smirauta](https://community.auth0.com/u/smirauta)\
**Post date:** [February 8, 2021, 8:32am UTC](https://community.auth0.com/t/access-token-expiration-30-days/57536/1 "2021-02-08T08:32:35Z")

</div>

Hello,

We are searching for a solution to implement long-lived API keys with Auth0, similar to these posts:

> [@How to implement API keys using Auth0?](https://community.auth0.com/t/how-to-implement-api-keys-using-auth0/6296/7):
>
> No that’s not what I am after. We are working on an API that will be made publicly available to our customers. That API also needs to be secured. We really don’t want to push the burden of requesting access tokens onto the customer (client credentials grant). Long-running API keys are really the only solution for us. For example, GitHub gives you the ability to generate personal access tokens that do not expire and are also able to be reset and deleted.

> [@Has anyone found a way to support API Keys with Auth0?](https://community.auth0.com/t/has-anyone-found-a-way-to-support-api-keys-with-auth0/16469):
>
> Hi, I need the ability to allow third-party services to authenticate into my api on behalf of a user. There are many API’s out there that allow this, such as GitHub and Azure. They use the concept of an API key associated with a user’s account. There are many posts in the Auth0 forums requesting this capability but I’m not sure if anyone has really found a solution. There has been the occasional suggestion of using the refresh\_token but this is a very different concept. The use case i need a …

While I found in the community some ways to implement API keys, I don’t find any post describing how to set an access token expiration longer than 30 days. We need an expiration of at least 3 months, sometimes also 1 year. Is that possible?

Thank you!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 8, 2021, 8:46am UTC](https://community.auth0.com/t/access-token-expiration-30-days/57536/2 "2021-02-08T08:46:30Z")

</div>

Hey there!

As an Auth0 employee I can assure you that unfortunately you won’t find. anything like that in our public docs as simply it’s a practice we do not recommend.

---

<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:** [February 23, 2021, 5:26pm UTC](https://community.auth0.com/t/access-token-expiration-30-days/57536/4 "2021-02-23T17:26:26Z")

</div>

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