Unless you’re a dev with an old app from before token expiration was added, you can’t get an indefinite token, and even then those old tokens will eventually be revoked at some point too.
Just refresh the token a little bit of time before it expires (or in the case of an app access token, just get a new one).