Hi,
I’m currently working on a website and want to assign a role to a user from code. (It’s my first project using Auth0)
The problem is that I always get the response: statusCode: 401 error: Unauthorized message: "Missing Authentication (and a bunch of other stuff that probably isn’t relevant), even tough I use the same api token that worked, when using the api explorer/tried getting a new one every time I use. (The cURL command that the api explorer gives me, also doesn’t work).
that is my code:
Thanks for the quick reply!
How in the world could I have overlooked that?
Anyways, now it works. But now I’m wondering if that is a paid feature, because I still have the trial and in the comparison it says that “Role Management” is not included in the free plan.
Unfortunately, I don’t think you can opt-out of the trial.
I have noticed that in my free plan tenant I am able to add roles and assign them to users. I’m asking around to see what the restrictions are around role management for the free plan. I will let you know what I find!
After talking with my team, I realized that it would be best to keep track of roles in a custom rule instead of using the core authorization if you are on the free plan.