Not Possible to Remove the Scopes in the Token for Machine-to-Machine Applications Inside an Credentials-Exchange Action
Feb 20, 2026
Overview
Property 'addScope' does not exist on type 'AccessTokenAPI'
This error is observed in the context of the Machine-to-machine flow.
While these methods exist in other flows (e.g., Login Flow, as shown in the screenshot below), in this, it is throwing an error in the IDE.
Applies To
- Node 18 runtime.
- Machine-to-Machine Flow
Cause
This is a current limitation of Auth0.
The scopes cannot be removed from M2M tokens and all granted scopes will be returned for the M2M application. This is explained in the link to our Community Article below:
Solution