I have SPA for which I want to get management API token to update user profile and reset password. I am not getting Management API token.
Which asks me to create M2M application as described here: https://auth0.com/docs/tokens/management-api-access-tokens/create-and-authorize-a-machine-to-machine-application
I already have default M2M application in my apps. On this page: https://auth0.com/docs/tokens/management-api-access-tokens/get-management-api-access-tokens-for-production
It then asked me to get Management API token via POST call to
with credentials of M2M application. Parameters asks for audience and client_secret. Even after passing Management API audience I am getting 401.
I even tried this suggestion: Need help accessing Management API using react-auth0-spa-js
It is working only with loginWithPopup method and the management API token I receive is not getting the scopes I requested.
Could someone please help me in getting out of these?