Feiling Pan Greetings!
Looks like you are referring to this page az iot hub generate-sas-token
Please note that generating a SAS token with a longer duration can increase the security risk. So you should only do this if it is necessary for your scenario.
The default value is 3600 seconds. You can set the token expiration as desired.
For ex:
az iot hub generate-sas-token -n myIoTHub -d myDevice --du 630720
Also, check Control access to IoT Hub using Shared Access Signatures for more details.
Hope this helps. Do let us know if you have any further queries.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.