#1 2024-04-08 14:51:32

Registered: 2020-01-21
Posts: 17

Querying rest api for expiring date token

Hello I am designing a daemon software for Linux. It will be server for some functions and client for others, of course. Specifically, one of the classes queries and receives a token from a remote rest api service that indicates an expiration of 90 days, after which the token must be renewed for another 90 days. I wanted to ask if there is a class in the framework that could be grafted to instantiate an object to perform some sort of expiration date check and if so, execute the method to request a new token. I was thinking I could use a TTimer in case nothing exists, which once a day performs the check. But it might be inefficient for such a task or creating a thread problem. Any advice or experiences of yours ?


Last edited by slapshot (2024-04-09 07:19:44)


Board footer

Powered by FluxBB