Thank you for submitting the feedback!
You can send extra data in the request body in the Client Credentials flow. You can create a client credentials Action:
exports.onExecuteCredentialsExchange = async (event, api) => {
api.accessToken.setCustomClaim("https://my-api.exampleco.com/example-claim", event.request.body.example);
};
And add the Action to the Machine to Machine flow in your Auth0 Dashboard (Actions > Flows).
When you request a token, you can include any data in the request body:
curl --request POST \
--url 'https://your-domain/oauth/token' \
--header 'content-type: application/x-www-form-urlencoded' \
--data grant_type=client_credentials \
--data client_id=YOUR-CLIENT-ID \
--data client_secret=YOUR-CLIENT-SECRET \
--data audience=YOUR-API-IDENTIFIER \
--data example=true \ // <-- extra data