I created a MindConnect Lib agent a few days ago and created the corresponding agent variables to correspond to the asset(s) variables' unit and data type.
When clicking on the "generate onboarding key", my Initial Access Token shows that it is expiring significantly shorter time than 7 days.
Solution
The Initial Access Token timer is created immediately after clicking the "generate onboarding key" for the first time and is renewed internally every 7 days (from the creation time).
Therefore when I click on the "generate onboarding key" button, the already generated token is given to me with the token expiring at the same time and day-of-the-week but on the upcoming date.
For example, if I created my agent on Sunday at 23:00, and I click the "generate onboarding key" on Sunday at midnight, all future tokens that I create from subsequent clicks on "generate onboarding key" will expire on the upcoming Sunday at midnight.
In order to receive a full 7 days expiration on my IAT, it is best practice not to click "generate onboarding key" until you need it. If this has already done, you will have to wait until the previous token to expire (which will be on the same time and day-of-the-week you first generated your first onboarding key) to click "generate onboarding key"
Notes