# Is it possible to use PKCE authorization code flow for regular web app?

**URL:** <https://community.auth0.com/t/is-it-possible-to-use-pkce-authorization-code-flow-for-regular-web-app/102282>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [March 10, 2023, 5:16pm UTC](https://community.auth0.com/t/is-it-possible-to-use-pkce-authorization-code-flow-for-regular-web-app/102282 "2023-03-10T17:16:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthik.jeeva](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karthik.jeeva/32/50905_2.png) [@karthik.jeeva](https://community.auth0.com/u/karthik.jeeva)\
**Post date:** [March 10, 2023, 5:16pm UTC](https://community.auth0.com/t/is-it-possible-to-use-pkce-authorization-code-flow-for-regular-web-app/102282/1 "2023-03-10T17:16:24Z")

</div>

I am new to auth0, reading docs I see the need for PKCE in single page APP and I am curious to know If regular web app can also use PKCE by making Token Endpoint Authentication Method to None?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 14, 2023, 12:39am UTC](https://community.auth0.com/t/is-it-possible-to-use-pkce-authorization-code-flow-for-regular-web-app/102282/3 "2023-03-14T00:39:34Z")

</div>

Hi there @karthik.jeeva !

While I believe technically possible, none of our regular web app specific SDKs support PKCE - The primary reason being that typically the client is confidential (server side) and can thus store a client secret appropriately. A securely stored client secret is generally considered a better option.

> **[Which OAuth 2.0 Flow Should I Use?](https://auth0.com/docs/get-started/authentication-and-authorization-flow/which-oauth-2-0-flow-should-i-use#is-the-client-a-web-app-executing-on-the-server-)**
>
> Learn how to identify the proper OAuth 2.0 flow for your use case.

Hope this helps to clarify!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 28, 2023, 12:39am UTC](https://community.auth0.com/t/is-it-possible-to-use-pkce-authorization-code-flow-for-regular-web-app/102282/4 "2023-03-28T00:39:59Z")

</div>

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