[social]Depends what the token is for. I have some that are 24 to 48 hours. Others are a couple weeks, but most are three months to a year. If tokens are temporary and you want new tokens the 24 to 48 hours is a decent option. If it is for a project duration a couple weeks should work. If it is for your own needs the many months is a decent option.
GWGWell, the WordPress IndieAuth default is 14 days unless you change it in the settings. The refresh token expires shortly thereafter, which created a problem because my new app didn't refresh in time, so I'm trying to plan a fix.
ZegnatI went with a 30 day max lifetime for the sign-in session, but with a 7 day idle lifetime on the tokens. If a refresh token is not used for 7 days it expires and I need to auth again. Every time you use the refresh token a new one is issued, so an old leaked token cannot be used, but the reissues stop working at 30 days and then I need to auth anew.