API Throws OAuth Error After 24 Hours

API Throws OAuth Error After 24 Hours

Thanks for reading. I have the REST API up and working for both CRM and WorkDrive but keep running into an issue with the API throwing an Invalid OAuth token error after 24 hours.  How do make sure the token stays alive so that I can move my application to production?