self client generated code duration

self client generated code duration

The code I have created from the self client is canceled after a while and I have to generate the acces token again. What do I have to do to make this code constantly active?