AADSTS700082: The refresh token has expired due to inactivity

Kaan San 55 Reputation points
2023-07-28T09:46:50.5066667+00:00

Hi! We have error called refresh token has expired due to inactivity error but we use the refresh_token everyday and we expect it to be refreshed every time. Meaning of refresh_token life span should increase each time.

We know that refresh token will expire after 90 days if it's inactive but we use it everyday.

At our code base, we use OAuthWebAuthCodeGrant
and request_oauth_tokens_by_refresh_token function with Python bing ads SDK.

Can anyone help me with this case? what might be the reason for this problem?

bingads.exceptions.OAuthTokenRequestException: error_code: invalid_grant, error_description: AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2023-03-24T14:58:04.6654271Z and was inactive for 90.00:00:00.
Microsoft Advertising API
Microsoft Advertising API
A Microsoft API that provides programmatic access to Microsoft Advertising to manage large campaigns or to integrate your marketing with other in-house systems.
424 questions
0 comments No comments
{count} votes

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.