
Hello,
We are using CrmServiceClient to connect, the problem is that after 60 minutes the token expires and gives us a connection error.
We've been looking, but haven't found a way to refresh the token without calling the new CrmServiceClient(connectionStrings) method again.
Is there a way to refresh the token without having to create a new connection each time?
Howdy,
The lifetime of a token is typically 60-90 minutes, that is by design.
However, here is the information page about refresh tokens:
docs.microsoft.com/.../refresh-tokens
Also, here is another community discussion about token expiration:
community.dynamics.com/.../825701
Hope this helps!