# Doubt about "Client Secret" and Applications types

**URL:** <https://community.auth0.com/t/doubt-about-client-secret-and-applications-types/73773>\
**Category:** Get Help\
**Tags:** jwt, auth0\
**Created:** [November 25, 2021, 3:37pm UTC](https://community.auth0.com/t/doubt-about-client-secret-and-applications-types/73773 "2021-11-25T15:37:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gersveo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gersveo/32/33174_2.png) [@gersveo](https://community.auth0.com/u/gersveo)\
**Post date:** [November 25, 2021, 3:37pm UTC](https://community.auth0.com/t/doubt-about-client-secret-and-applications-types/73773/1 "2021-11-25T15:37:37Z")

</div>

If I have an application (Regular web application, Single page web application (SPA), Native application)… Is the purpose of “Client Secret” to check or validate the JWT (back-end)?

The only way to update:xxx, read:xxx, delete:xxx or do any actions into Auth0 is with an application “Machine to machine (M2M)”? (back-end with “Client Secret”)

With “Regular web application”, “Single page web application (SPA)”, “Native application” is possible to update:xxx, read:xxx delete:xxx (back-end with “Client Secret”).

I’m still fairly new to this, so I may be missing something.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 26, 2021, 9:43pm UTC](https://community.auth0.com/t/doubt-about-client-secret-and-applications-types/73773/3 "2021-11-26T21:43:01Z")

</div>

Hi @gersveo,

Welcome to the Auth0 Community!

SPA and native applications run on the user’s device. This could be a browser or mobile device and as such, these applications cannot keep any information secret from the user.

If you were to request/issue a management API token from a single page app/native app, the user could inspect the application on their device, get the token, and make read/update/delete requests against your tenant. This could in effect give a random user admin-style access.

As a result, we recommend management API requests be made from a trusted M2M application.

---

<div class="post-metadata">

**Author:** ![gersveo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gersveo/32/33174_2.png) [@gersveo](https://community.auth0.com/u/gersveo)\
**Post date:** [November 28, 2021, 4:24pm UTC](https://community.auth0.com/t/doubt-about-client-secret-and-applications-types/73773/4 "2021-11-28T16:24:49Z")

</div>

Thnks @dan.woda for you response.

I know the proposal of each APP (Regular web application, Single page web application (SPA), Native application)… I understant the importance of “Client Secret” is for backend use only…  
I tested each APP… for example: I tested (without Client Secret) “Regular web application” and “Native application” in React (SPA)… And I tested a “Single page web application (SPA)” and “Native application” with nodeJS and php (with Client Secret)…

In the two tests, the Auth0 “Applications” worked the same way, I did not see any difference between the three Auth0 “Applications”, even the settings of these three Auth0 “Applications” were the same.

When I tried to use Auth0 application “Machine to Machine (M2M)” with ReactJS (front) and NodeJS-PHP (backend) it didn’t work (try to verify token). (I had expected functionality, it only worked for machine-to-machine communication.)

I have not yet tested the operation of the three previous Apps (Regular Web Application, Single Page Web Application (SPA), Native Application) trying to make a Machine to Machine communication, I hope that with these three applications it does not work.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 29, 2021, 5:42pm UTC](https://community.auth0.com/t/doubt-about-client-secret-and-applications-types/73773/5 "2021-11-29T17:42:40Z")

</div>

I’m sorry, it’s not clear to me what you are describing. Can you give a specific example of what you are trying to accomplish?

---

<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:** [December 14, 2021, 5:42pm UTC](https://community.auth0.com/t/doubt-about-client-secret-and-applications-types/73773/6 "2021-12-14T17:42:49Z")

</div>

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