question

lord-vault avatar image
0 Votes"
lord-vault asked ColsonKirsten-5688 commented

invalid_grant - The provided grant has expired due to it being revoked

Hello everyone,

I tried to contact MS support team and they just redirected me here and closed the ticket. I'm integrating MS Teams in our product. We have a verified OAuth app and during the authorize call, we are asking the following scopes to the user: OnlineMeetings.ReadWrite User.Read offline_access
A user is getting the following error when refreshing the token:

 {
   "error": "invalid_grant",
   "error_description": "AADSTS50173: The provided grant has expired due to it being revoked, a fresh auth token is needed. The user might have changed or reset their password. The grant was issued on '2021-02-16T02:58:58.7240000Z' and the TokensValidFrom date (before which tokens are not valid) for this user is '2021-03-19T03:41:25.0000000Z'.\r\nTrace ID: 00271936-7745-4296-afbb-3e06e9060101\r\nCorrelation ID: 1df21bd3-0cd3-4469-8ec3-a3064e2b8fef\r\nTimestamp: 2021-03-22 09:49:15Z",
   "error_codes": [
     50173
   ],
   "timestamp": "2021-03-22 09:49:15Z",
   "trace_id": "00271936-7745-4296-afbb-3e06e9060101",
   "correlation_id": "1df21bd3-0cd3-4469-8ec3-a3064e2b8fef",
   "error_uri": "https://login.microsoftonline.com/error?code=50173"
 }

What does that mean and how do I remediate it? Is it a problem on MS side? Do I need to reauthenticate the user?

microsoft-graph-teamwork
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

DianaWanjuhi-1579 avatar image
0 Votes"
DianaWanjuhi-1579 answered ColsonKirsten-5688 commented

Hello @lord-vault this error means that the token has expired and needs to be refreshed. Kindly have the user sign in again using fresh credentials.

I hope this helps.

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

this didn't work for me, I refreshed my credentials like a dozen time. Any other idea?

3 Votes 3 ·

Same problem here. Signed out and back in - same error again.

0 Votes 0 ·

I had the same issue...signing out and in did not help

0 Votes 0 ·