Never expiring users

We have a flutter application that we want to add a a type of users:

  1. which will login with use and password
  2. the token will never expire : we will ask a password only once
  3. if they do not use the token in 30 days , then require to login again

What is your best way to implement it ?