Token expiring after a day? for strapi heroku deployed project

I’m going to guess its because the server restarts after 30/90 minutes of inactivity.
This would then create a new token and start the server again