Expired Refresh Token Causes an Invalid Token Error

The refresh token expires after 90 days of inactivity. Microsoft also reserves the right to expire the token at any time for security reasons. The following error message indicates that a refresh token has expired and cannot be exchanged for a new token.

<genericRestFault><errorCode>400</errorCode><errorPath><![CDATA[POST 
https://login.microsoftonline.com/common/oauth2/v2.0/token returned a response 
status of 400 Bad Request]]></errorPath><instance><![CDATA[{"error":"invalid_grant",
"error_description":"AADSTS700082: The refresh token has expired due to inactivity. 
The token was issued on 2019-11-05T19:11:55.7631194Z and was inactive for 90.00:00:00.
\r\nTrace ID: b7b09af0-2391-4840-93ee-59b383031700\r\nCorrelation ID: 
16ff8fa7-e78c-499a-b4f5-c18498b94f6c\r\nTimestamp: 2020-03-12 01:41:39Z",
. . .
. . .
. . .
If the refresh token has expired, perform the following steps:
  1. Click Provide Consent again on the Connections page for the Microsoft Office 365 Outlook Adapter connection and go through the OAuth process.

    After completing this process, a new token is acquired.

  2. Test and save the connection.

    After this, the token is renewed and the connection works as expected.

See Configurable token lifetimes in Azure Active Directory.