Link to the code: https://xlinesoft.com/blog/2021/11/15...
Let's say you need to provide users temporary access to your application. You create a user, set their access to 'temporary' and after 24 hours they should not be able to log on to your application. And, of course, you need this to happen automatically.