How can I adjust the custom validity period of a token?

How can I adjust the custom validity period of a token?
In the project authorization mode, the token has a default fixed validity period and does not support customization.