Refresh token expiry and the corresponding error message

Nitesh Kumar 36 Reputation points
2022-01-25T13:22:00.93+00:00

What is the strategy for the expiration of Refresh tokens.
Do they get expired after a period of 90 days inactivity ?
If yes then what is the Error Response returned by the Graph api ?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Zehui Yao_MSFT 5,876 Reputation points
    2022-01-26T09:49:09.543+00:00

    Do they get expired after a period of 90 days inactivity ?

    The refresh token is valid for 90 days, according to the documentation.
    https://learn.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes#refresh-and-session-token-lifetime-policy-properties

    168667-image.png

    If yes then what is the Error Response returned by the Graph api ?

    Here is an example of the error message:
    AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2018-10-19T17:26:59.8511467Z and was inactive for 90.00:00:00.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.