I have attempted to setup access to an API via the Password grant type, but when I send a cURL request, I get the error in the title. I don’t know how to resolve that. What do I do?
As Far as I know, I followed the instructions at this URL exactly: Call Your API Using Resource Owner Password Flow. This is the cURL request that fails (details left as the placeholders):
curl --request POST \
--url 'https://<my auth0 domain>/oauth/token' \
--header 'content-type: application/json' \
--data '{"grant_type":"password","username": "<a user>","password": "<a pswd>","audience": "<my api identifier>", "scope": "read:messages", "client_id": "<my client id>", "client_secret": "<my client secret>"}'