Use Management API without backend in ionic/ Is there a better way To Update A User without using ManagementAPI natively

So, I have an ionic app, and I have to update a user where some of the data is stored in the user_metadata. I have been trying to use the management API endpoint [/api/v2/users/{id}]. But in order to use the management API, we need a Bearer token. So, I am using, the /authorize endpoint to get the bearer token using the document (https://auth0.com/docs/api-auth/tutorials/authorization-code-grant-pkce) I do have scope options read:users, update:users, update:user_app_metadata.

But the returned bearer token, eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlF6UTNNVVE1TlVNeE16RTRPVVl6TUVJMVFVSkJPVUpGUWpOQk5EYzJOMFpHTVRRMk1VWkNOQSJ9.eyJodHRwczovL3d3dy5hdXRvaW5yZXRlLmNvbS9yb2xlcyI6W10sImlzcyI6Imh0dHBzOi8vYXV0b2lucmV0ZS10ZXN0LmV1LmF1dGgwLmNvbS8iLCJzdWIiOiJhdXRoMHw1ZjBjOTM2YWE5Y2VkOTAwMTlkMjc2YmUiLCJhdWQiOlsiaHR0cHM6Ly9hdXRvaW5yZXRlLXRlc3QuZXUuYXV0aDAuY29tL2FwaS92Mi8iLCJodHRwczovL2F1dG9pbnJldGUtdGVzdC5ldS5hdXRoMC5jb20vdXNlcmluZm8iXSwiaWF0IjoxNTk0NjU5NzUxLCJleHAiOjE1OTQ3NDYxNTEsImF6cCI6Ijd6N3BIVTVXdTNSNlQ3eFFzSFNTbnNET054WnFvOGQyIiwic2NvcGUiOiJvcGVuaWQgcHJvZmlsZSBvZmZsaW5lX2FjY2VzcyJ9.CFm-EGX5cSmp1pHy0nbnv_A6_kgYC30Ccy6HqSH7dNEhjgYm-fUyQqWQQDyAjw1yxl9098szOypKCJA4TCAhG7TImamG4D-5mlSmZHzkaPfh3UekVplK4dSbPM48xQtY_18PZM7lorKFPDtpdQu3s_j_6lg16vAIfmfZmVRvAgKPILYgNDqv01Z2xCm-PZ3ptBxHtkkjBpWJsx-mv3j8dPUY-WcouwtAQ-10ebDYayaVegrZDWpTXtAkkJgNv4IZuP9mpsXVpOylECWPyZr3qlUpd_VzJG3wfDKW7sHno2-4qpy7alQUeW6dZky3SdMN5gpD4AKI3tzOI7BllGkz2w
doesn’t have any of the scopes that I had mentioned.

It only has profile, openid & offline_access, when checking through the set API Token in the management document page (https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id) and hence have the error "Insufficient scope, expected any of: update:users, update:user_app_metadata".

I have also, tried using a custom API as a proxy for Management API but that didn’t take me anywhere. (Is it possible to manipulate user metadata without using a Management API token?)
I also see that It is mentioned often that management API must only be used with backend services, but Is there a better way? (To Update A User without using Management API natively)

Did you try this page: https://auth0.com/docs/api/management/v2/tokens

You can update metadata in a rule, but other than that you must use the mgmt API.

John