Share via

Refresh token issue

Saad Asad 1 Reputation point
2021-11-17T14:53:58.203+00:00
  1. User is getting logged into the azure active directory application from the popup that appears on the frontend
  2. Access token is generated from MSAL library and I am trying to get the refresh token from the sessions
  3. Then the tokens are saved in the database
  4. User clears the cache
  5. Token is expired after 1 Hour
  6. Need a way to refresh the token in the backend api, but getting into the errors like: invalid grant, client is not valid, request malformed

How can i generate the meeting links from the backend api?

Below is the error i am getting here mostly!!
{
"error": "invalid_grant",
"error_description": "AADSTS9002313: Invalid request. Request is malformed or invalid.\r\nTrace ID: e088b1fa-8902-41ad-a559-73e6facd2c00\r\nCorrelation ID: d300ab19-bbe3-4dad-b225-50aad7258d05\r\nTimestamp: 2021-11-17 14:52:06Z",
"error_codes": [
9002313
],
"timestamp": "2021-11-17 14:52:06Z",
"trace_id": "e088b1fa-8902-41ad-a559-73e6facd2c00",
"correlation_id": "d300ab19-bbe3-4dad-b225-50aad7258d05",
"error_uri": "https://login.microsoftonline.com/error?code=9002313"
}

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Your answer

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