# Custom OAuth IdP not refreshing access token

**URL:** <https://community.auth0.com/t/custom-oauth-idp-not-refreshing-access-token/182746>\
**Category:** Get Help\
**Tags:** sessions, access-token\
**Created:** [February 25, 2025, 2:04am UTC](https://community.auth0.com/t/custom-oauth-idp-not-refreshing-access-token/182746 "2025-02-25T02:04:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SJunwikul](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sjunwikul/32/73185_2.png) [@SJunwikul](https://community.auth0.com/u/SJunwikul)\
**Post date:** [February 25, 2025, 2:04am UTC](https://community.auth0.com/t/custom-oauth-idp-not-refreshing-access-token/182746/1 "2025-02-25T02:04:54Z")

</div>

I’m using a custom OAuth IdP, went through all the stuff to get the authenticated user’s IdP access token, but it’s expired and not refreshed. I can refresh it with the IdP’s endpoint and make the API call to the IdP’s server using the refreshed access token, but the problem is the access token stored in Auth0’s server will still be the old set (of the unrefreshed access token and the refresh token that I just used).

What do I do?

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [February 28, 2025, 2:42pm UTC](https://community.auth0.com/t/custom-oauth-idp-not-refreshing-access-token/182746/3 "2025-02-28T14:42:25Z")

</div>

Hi @SJunwikul

Welcome to the Auth0 Community!

Thank you for posting your question; based on the documentation I’ve read, Auth0 does not update the Access Token that originates from 3rd party IDP, and this behavior is expected. You can read more about that here → [Identity Provider Access Tokens](https://auth0.com/docs/secure/tokens/access-tokens/identity-provider-access-tokens#renew-third-party-tokens)

Thanks  
Dawid

---

<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:** [March 14, 2025, 2:42pm UTC](https://community.auth0.com/t/custom-oauth-idp-not-refreshing-access-token/182746/4 "2025-03-14T14:42:48Z")

</div>

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