If you are developing a plugin there is no expiration because the environment take care of token etc.
The OAuth token does expire after one hour, so I am guessing this is what you are asking for. This cannot be changed. You can implement a solution that renews the token.