Angular: Change app_metadata for current user or role

Hello everyone!

I need to implement user role management via Auth0 Actions and Angular (SPA).

First I try to get and change the user roles, but I can’t implement it in any way.

After that, I tried to implement role management with app_metadata. When user login or create new account, I set the default role (“User”) and i get it with customClaim, but I can’t change it in any way using Service in Angular.

Does anybody have the same problem with implementation or any help?

Thanks in advance