react-oidc-context
react-oidc-context copied to clipboard
More than one Auto Renewal calls are happening in sequence
Hi team,
I am this library for oauth2.0 implementation . It has been observed that, some times it is making two successive calls to token -end point in silent renewal of access_token. Though first call is successful, it is making the second call immediately to get the access token and refresh token, and next time , when the refresh token used in the previous call is used in token rotation, I am getting the error response from server saying,
{"error_descirption":"Unknown, invalid or expired refresh token" , "error":"invalid_grant"}
Could some one please help me to sort out this issue.
I also got the "invalid_grant" error. Maybe this issue related with https://github.com/authts/react-oidc-context/issues/390#issue-1249428231
Same problem here!
The root case could be multiple open tabs. The problem is in the underlying library oidc-client-ts. See https://github.com/authts/oidc-client-ts/issues/430
Same problem here!
You will need to find out why it fails for your application/IDP. For others including me it works. You can do so by enabling logging like described here: https://github.com/authts/oidc-client-ts/blob/main/docs/index.md#logging