# Expiration of CODE

**URL:** <https://community.hubspot.com/t/expiration-of-code/12608>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [January 16, 2019, 4:21pm UTC](https://community.hubspot.com/t/expiration-of-code/12608 "2019-01-16T16:21:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [January 16, 2019, 4:21pm UTC](https://community.hubspot.com/t/expiration-of-code/12608/1 "2019-01-16T16:21:04Z")

</div>

For the CODE acquired via [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/oauth2/initiate-oauth-integration) -- whats the expiration?

I am consistently getting “status”:“EXPIRED\_AUTH\_CODE” when trying to get the refresh/access token via [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/oauth2/get-access-and-refresh-tokens).

In this case, someone else is generating the CODE for me and there might be some delay in my receiving the CODE and my attempting the TOKEN.

Thanks!

---

<div class="post-metadata">

**Author:** ![JasminLin](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jasminlin/32/99730_2.png) [@JasminLin](https://community.hubspot.com/u/JasminLin)\
**Post date:** [January 17, 2019, 6:42am UTC](https://community.hubspot.com/t/expiration-of-code/12608/2 "2019-01-17T06:42:59Z")

</div>

Hi [@user201901](https://community.hubspot.com/u/user201901), the auth code has a 10 minutes expiration after it is generated.
