Changing Access Token Expiry Dynamically

Overview

This article explains whether it is possible to dynamically change the expiry of the Access Token depending on the request parameters.

Applies To

  • Machine-to-Machine Flows
  • Client Credentials Grants
  • APIs

Solution

The expiry of an Access Token issued will always be the expiration time set at the API (resource server) level. It is not possible to update this dynamically. To suggest this functionality in a future release of Auth0, please submit a feature request using the Product Feedback form. More information about this process can be found at How to Submit Product Feedback or Feature Requests