# Do refresh tokens from legacy /ro endpoint work with new /token endpoint?

**URL:** <https://community.auth0.com/t/do-refresh-tokens-from-legacy-ro-endpoint-work-with-new-token-endpoint/7642>\
**Category:** Get Help\
**Tags:** legacy, react-native, refresh-tokens\
**Created:** [July 24, 2017, 10:41pm UTC](https://community.auth0.com/t/do-refresh-tokens-from-legacy-ro-endpoint-work-with-new-token-endpoint/7642 "2017-07-24T22:41:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewgoodale](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@andrewgoodale](https://community.auth0.com/u/andrewgoodale)\
**Post date:** [July 24, 2017, 10:41pm UTC](https://community.auth0.com/t/do-refresh-tokens-from-legacy-ro-endpoint-work-with-new-token-endpoint/7642/1 "2017-07-24T22:41:10Z")

</div>

We have a mobile application built with React Native and using the “react-native-auth0” SDK. Our application uses the “Resource Owner Password” style of authentication, using a login form written in React Native. We started with a beta version of the SDK, v1.0.0-beta.1, which uses the legacy endpoints for authentication (/oauth/ro) and token refresh (/delegation).  
The new React Native Auth0 SDK, v1.0.3, uses the modern endpoint (/oauth/token) for authentication and token refresh.  
As part of migrating from the old to the new SDK, we saw that ID tokens were now being signed with the RS256 algorithm instead of HS256. We modified the mobile app’s API server to handle both algorithms (so that we can support old and new clients).  
However, when using refresh tokens, we noticed that a refresh token acquired from the legacy endpoint will not return a new ID token when passed to the non-legacy endpoint. When the user downloads and installs the new version of the app with the new SDK, the app will pass a refresh token from the legacy endpoint (/oauth/ro) to the new API for token refresh (/oauth/token). Does Auth0 support returning an ID token as part of that refresh?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [August 3, 2017, 6:43pm UTC](https://community.auth0.com/t/do-refresh-tokens-from-legacy-ro-endpoint-work-with-new-token-endpoint/7642/2 "2017-08-03T18:43:43Z")

</div>

The answer to the title question is yes, they technically _work_, as in, they will not trigger a failed request, however, they provide limited functionality so the _they work_ part highly depends on your scenario and based on your information you were expecting an ID token and to my knowledge at this time an ID token will not be issued when doing such sort of request that bridges legacy and new flows.

In addition, the recommended approach would be for you to no longer send ID tokens to the API and instead obtain access tokens suitable for the API in question through any of the supported API Authorization flows (aka audience parameter). At this time, access tokens issued to your own API’s will be JWT’s so from your API perspective it would be very similar to what you likely already have and most of the changes would be confined to the client application itself.

---

<div class="post-metadata">

**Author:** ![ivaylo.ivanov](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ivaylo.ivanov](https://community.auth0.com/u/ivaylo.ivanov)\
**Post date:** [October 11, 2017, 8:17pm UTC](https://community.auth0.com/t/do-refresh-tokens-from-legacy-ro-endpoint-work-with-new-token-endpoint/7642/3 "2017-10-11T20:17:43Z")

</div>

@andrewgoodale As you are in the legacy flows with RO and Delegation, in order to use your refresh token to get a new id\_token you could make call to /delegation endpoint passing:

client\_id

scope

grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer

refresh\_token

This would return id\_token with which you should make /delegation to get your refreshed access token.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [October 12, 2017, 6:21pm UTC](https://community.auth0.com/t/do-refresh-tokens-from-legacy-ro-endpoint-work-with-new-token-endpoint/7642/4 "2017-10-12T18:21:05Z")

</div>

This is technically correct, you can consider the use of refresh token in `/delegation` as that would keep everything under the legacy umbrella, however, the recommendation if possible would be to move from the legacy methods.

---

<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 2, 2018, 5:55am UTC](https://community.auth0.com/t/do-refresh-tokens-from-legacy-ro-endpoint-work-with-new-token-endpoint/7642/5 "2018-03-02T05:55:35Z")

</div>


