react-oidc-context icon indicating copy to clipboard operation
react-oidc-context copied to clipboard

More than one Auto Renewal calls are happening in sequence

Open VijayaSaiRam opened this issue 3 years ago • 5 comments

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.

VijayaSaiRam avatar Jul 28 '22 13:07 VijayaSaiRam

I also got the "invalid_grant" error. Maybe this issue related with https://github.com/authts/react-oidc-context/issues/390#issue-1249428231

ahmadichsan avatar Aug 01 '22 02:08 ahmadichsan

Same problem here!

mrszympek avatar Aug 11 '22 15:08 mrszympek

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

pamapa avatar Aug 23 '22 15:08 pamapa

Same problem here!

timurscribe avatar Feb 19 '24 14:02 timurscribe

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

pamapa avatar Feb 26 '24 14:02 pamapa