Questions about the TTMSFNCCloudMicrosoftOutlookMail component

Hello,

i have 2 questions about TTMSFNCCloudMicrosoftOutlookMail component on VCL delphi 11.1 platform.

  1. Why can't the component be inserted on TDataModule, but only on TForm? We use it in the service and TForm cannot be used there. We are now creating the component in TDatamodule.Oncreate.
    We obtain the access token in the client application and store the tokens in the database.

  2. We are now using our service on 2 accounts on different windows, and on one of them, after 14 days, the message Access token has expired or is not yet valid appears. If we get a token again in the client application after logging in, the service works.
    Why does the token become invalid after 14 days when we download emails every minute.

Thanks in advance for your help.

  1. This is a technical limitation, the non visual FNC components are technically visual components which cannot be dropped on a TDataModule, non visual components can only be registered once for both VCL & FMX frameworks, and we need them to be registered twice for each framework separately.

  2. Access token expiry is determined by the cloud service. We have no control over expiry time.