# How can I call the token endpoint in a native app that can't use a client secret?

**URL:** <https://community.auth0.com/t/how-can-i-call-the-token-endpoint-in-a-native-app-that-cant-use-a-client-secret/6812>\
**Category:** Get Help\
**Tags:** token-endpoint, refresh-tokens\
**Created:** [May 31, 2017, 4:26pm UTC](https://community.auth0.com/t/how-can-i-call-the-token-endpoint-in-a-native-app-that-cant-use-a-client-secret/6812 "2017-05-31T16:26:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matsuzaki\_kazuo\_gn](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@matsuzaki\_kazuo\_gn](https://community.auth0.com/u/matsuzaki_kazuo_gn)\
**Post date:** [May 31, 2017, 4:26pm UTC](https://community.auth0.com/t/how-can-i-call-the-token-endpoint-in-a-native-app-that-cant-use-a-client-secret/6812/1 "2017-05-31T16:26:55Z")

</div>

Refreshing tokens is supposed to use the [/oauth/token](https://auth0.com/docs/tokens/refresh-token/current#use-a-refresh-token) API.  
However, `client_secret` is a REQUIRED parameter.

There is no `client_secret` in native app; how can I refresh tokens through this endpoint with a native app (iOS)?

---

<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:** [May 31, 2017, 7:46pm UTC](https://community.auth0.com/t/how-can-i-call-the-token-endpoint-in-a-native-app-that-cant-use-a-client-secret/6812/2 "2017-05-31T19:46:49Z")

</div>

The **client secret is required only for confidential clients** (those who are able to securely maintain that secret). For public clients which is the case of a native application the client secret can be absent in the request as including it would be irrelevant as the native application could not maintain it as a secret.

**If you correctly configured your client application as a native client in the Dashboard (_Client Type_) then the client secret won’t be required** when performing request to the token endpoint.

The documentation you linked to does not clearly reflect this situation so I’ll make a request to update it with additional information in order to reduce confusion.

---

<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:54am UTC](https://community.auth0.com/t/how-can-i-call-the-token-endpoint-in-a-native-app-that-cant-use-a-client-secret/6812/3 "2018-03-02T05:54:13Z")

</div>


