Best practices sample to vary the life-time of an OAuth2 token

Could you provide a best practices sample how to vary the life-time of an OAuth2 token which is 24 hours by default?

Please refer to: