# PKCE Error when my 'Application Type' is 'Native'

**URL:** <https://community.auth0.com/t/pkce-error-when-my-application-type-is-native/181784>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [February 9, 2025, 10:08am UTC](https://community.auth0.com/t/pkce-error-when-my-application-type-is-native/181784 "2025-02-09T10:08:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![qianwen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/qianwen/32/72760_2.png) [@qianwen](https://community.auth0.com/u/qianwen)\
**Post date:** [February 9, 2025, 10:08am UTC](https://community.auth0.com/t/pkce-error-when-my-application-type-is-native/181784/1 "2025-02-09T10:08:53Z")

</div>

I went through the Quick Start to set up the OAuth for the native iOS app. The application is set to be native but I got this error message in the XCode:  
“Unable to perform authentication with PKCE. Enable PKCE support in the settings page of the Auth0 application, by setting the ‘Application Type’ to ‘Native’.”

Not sure why

---

<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:** [February 11, 2025, 12:30am UTC](https://community.auth0.com/t/pkce-error-when-my-application-type-is-native/181784/3 "2025-02-11T00:30:17Z")

</div>

Hi @qianwen,

Welcome to the Auth0 Community and thank you for your post !

Even though Native Apps can not securely store client secrets, so implicitly the **Application Authentication** should already be set to **“None”** , this is for most cases the cause of the issue when dealing with this error message. Manually changing it might actually do the trick.

This can be accomplished using the [Dynamic Client Registration](https://auth0.com/docs/get-started/applications/dynamic-client-registration#use-dynamic-client-registration) method from the Management API by making a POST request and passing the `token_endpoint_auth_method` with the value `none`.

I hope this helps and you can let me know if that was the case.  
Best regards,  
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:** [February 25, 2025, 12:30am UTC](https://community.auth0.com/t/pkce-error-when-my-application-type-is-native/181784/4 "2025-02-25T00:30:32Z")

</div>

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