Problem Statement
We received a valid access token. But when calling the Auth0 endpoint using the access token with correct scopes, we received a 401 error.
Solution
Please check the following items:
-
send the API request with the correct domain where the token was obtained.
-
the audience for the token and the targeted endpoint should be the same.
-
the scopes in the access token are sufficient for the endpoint being targeted.