Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Silent Renewel making two calls immediately to token end point #629

Closed
VijayaSaiRam opened this issue Jul 26, 2022 · 7 comments
Closed

Silent Renewel making two calls immediately to token end point #629

VijayaSaiRam opened this issue Jul 26, 2022 · 7 comments
Labels
question Further information is requested

Comments

@VijayaSaiRam
Copy link

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.

@pamapa
Copy link
Member

pamapa commented Jul 26, 2022

Please enable logging or debug to find out the origin of the two calls. Without knowing where it is coming from its nearly impossible to help you...

@pamapa pamapa added the question Further information is requested label Jul 26, 2022
@pamapa
Copy link
Member

pamapa commented Jul 26, 2022

One call could be coming from SilentRenewService if settings.automaticSilentRenew == true, which is the default, the other one?

@VijayaSaiRam
Copy link
Author

I am using only this library for authentication purpose.. This is not happening all the time. Sometimes , it is making two calls one after the other immediately even the first call is success..

@pamapa
Copy link
Member

pamapa commented Aug 23, 2022

Might be related to #430

@pamapa pamapa closed this as completed Jan 11, 2023
@mparsakia
Copy link

I'm having this same issue.

@IonutMilasSecurrency
Copy link

Same issue here as well

@shreyalg10
Copy link

shreyalg10 commented Aug 29, 2024

Similar issue here. It only happens once when user has logged in for the first time (even if I don't have any other tabs/window open.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants