New ManagementClient() refuses to refresh access token

Hi @gabriel.mojica,

According to the “Expired token received for JSON Web Token validation” error message, it’s indicating that the access token being used has expired.

I went ahead and checked your tenant logs and found numerous “successful exchange of Access Token for a Client Credentials Grant logs” (seccft) logs.

Additionally, I checked your API settings and found that you have the Token Lifetime set to 24 hours and the Token Lifetime for Browser-based Flows set to 2 hours. These settings look fine.

I suggest that you decode your access token to verify that you are using the newly issued access tokens after expiration. Then, ensure you issue a new access token if the previous token has expired. This way, you won’t go over the quota for issuing M2M tokens.

Let me know if you continue having issues.

Thanks,
Rueben