I am trying to get an auth0 token which allows me to create/update users on auth0 through my backend service for user management.
I followed the instructions at https://auth0.com/docs/api/management/v2/tokens,(Auth0 Management API -> API Explorer -> Copy Token
) to generate the token. However, the token doesn't work for me. I get a 401 status response with the body below:
{
"statusCode": 401,
"error": "Unauthorized",
"message": "Invalid signature received for JSON Web Token validation",
"attributes": {
"error": "Invalid signature received for JSON Web Token validation"
}
}
I added all scoped just to be safe. I tried both ruby auth0 client and the UI for testing tokens at https://auth0.com/docs/api/management/v2
I did not find a solution yet at the auth0 forum so asking here. Many thanks.