Token expiring after a day? for strapi heroku deployed project

hi there, im having an issue with the tokens created through the strapi admin panel, when i deploy my strapi to heroku it seems like after a day (im not certain) the token expires and i hit 401, has anyone experienced this issue? to my knowledge the token las for 30 days right?

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

i dont think so, the same would happen in local when we restart the server which is not the case, i dont know what is going on but i solved by adding the find, and find one permission to the public role in strapi admin