# Token exchange for native Apple login in a React app

**URL:** <https://community.auth0.com/t/token-exchange-for-native-apple-login-in-a-react-app/188107>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [June 17, 2025, 9:37pm UTC](https://community.auth0.com/t/token-exchange-for-native-apple-login-in-a-react-app/188107 "2025-06-17T21:37:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom28](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tom28/32/60652_2.png) [@tom28](https://community.auth0.com/u/tom28)\
**Post date:** [June 17, 2025, 9:37pm UTC](https://community.auth0.com/t/token-exchange-for-native-apple-login-in-a-react-app/188107/1 "2025-06-17T21:37:59Z")

</div>

Hi,

I don’t want to use the Universal Login experience as it throws a clunky Safari popup for users. Therefore I’m doing Native login with Apple (which is successful) then I’m calling this endpoint: [https://auth0.com/docs/api/authentication#token-exchange-for-native-social](https://auth0.com/docs/api/authentication#token-exchange-for-native-social)

with this body:

const tokenExchangeBody: Record\<string, string\> = {  
grant\_type: ‘urn:ietf:params:oauth:grant-type:token-exchange’,  
subject\_token: credential.identityToken,  
subject\_token\_type: ‘urn:ietf:params:oauth:token-type:id\_token’,  
client\_id: auth0ClientId,  
audience: process.env.EXPO\_PUBLIC\_AUTH0\_API\_IDENTIFIER ‘’,  
scope: ‘openid profile email offline\_access’,  
};

However, I keep getting:  
Invalid subject\_token\_type.

Is this token exchange feature gated to paying customers only? Why is it not working?

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [June 17, 2025, 10:10pm UTC](https://community.auth0.com/t/token-exchange-for-native-apple-login-in-a-react-app/188107/3 "2025-06-17T22:10:16Z")

</div>

Hi @tom28,

Welcome to the Auth0 Community!

It is mentioned in our [Custom Token Exchange](https://auth0.com/docs/authenticate/custom-token-exchange#custom-token-exchange-profile) documentation that:

> Custom Token Exchange is currently in Early Access for Enterprise customers only

Since this feature is currently only in an Early Access stage, it is available only for a specific number of tenants and access to it can only be granted by directly contacting our support teams.

I hope this helps!  
Thanks,  
Remus

---

<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:** [July 1, 2025, 10:10pm UTC](https://community.auth0.com/t/token-exchange-for-native-apple-login-in-a-react-app/188107/4 "2025-07-01T22:10:43Z")

</div>

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