How to create a long-lived authorization token or any solution for keep the token always active?

I want to integrate chatGPT in my application, but I have a trouble is the token only active in a short time. When I try to access it next day, it will push an error.