Using Custom API with Permission getting "Unauthorized"

That is correct, Management API Tokens obtained directly through a SPA are limited in scope by design.

The most common way of going about this is using a backend to serve as proxy for the SPA making calls against the management API:

https://community.auth0.com/t/how-can-i-enable-users-to-change-their-email-address-from-a-spa-or-native-app/44064

If you’re interested, here is an example of what this might look like in a Node backend - This extends our standard auth0-react sample app.

1 Like