Issue:
Most likely the reason for the token expiration is that the default expiration date of the token has been manually changed in the screen below:
Solution:
While creating a token the default expiration date should be kept and not changed. The token will be automatically refreshed when it's required.