Hi @lakshya,
Welcome to the Auth0 Community!
Have you made sure that the request looks something like the following:
curl --request POST \
--url 'https://YOUR_DOMAIN/oauth/token' \
--header 'content-type: application/x-www-form-urlencoded' \
--data grant_type=authorization_code \
--data 'client_id=YOUR_CLIENT_ID' \
--data 'client_secret={yourClientSecret}' \
--data 'code=yourAuthorizationCode}' \
--data 'redirect_uri=https://YOUR_APP/callback'
Usually, a 404
error indicates that the domain URL cannot be found. Please check that the domain looks like https://TENANT.REGION.auth0.com
, for example, https://exampletenant.us.auth0.com
.
Please let me know how this goes for you.
Thanks,
Rueben