-
Notifications
You must be signed in to change notification settings - Fork 434
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
[Bug]: Silent refresh fails using localStorage when multiple tabs trying to refresh at the same time #1838
Comments
Experiencing the same issue. Any help appreciated. |
Same issue. |
We're encountering issues with this fairly often too. If there's a solution at the library level, that would be great. |
Not sure if you are experiencing any of the issues found here as well? #1753 |
No, not as far as I know. The trick mentioned in #1662 (comment) is something I'm going to try, where the |
Good luck. We tried that in the past but it didn't fix our issue. |
We tried that but unfortunately it doesn't resolve our issue. |
Is there any progress on this issue? |
The cleanest solution would be to queue up the refreshes to guarantee a sequential order🤔🤔🤔 If that is possible. Have to test, but afair the tab gets a new instance of the lib, so basically we have to distinguish between what is being renewed currently. Maybe we can move the renewal information to the specific entry in the LS. Wdyt? |
We have the same issue :/ (v. 16.0.1) |
@FabianGosebrink I think most proposed workarounds are trying to achieve this. I tried a random |
@FabianGosebrink is there any chance to fix this anytime soon? We've tried many workarounds, but it seems that you can't do too much from the outside of the lib. When this error occurs, the auth data is being reset in the local storage and it affects all the tabs. |
I would love to but lacking of time :( As soon as I got time I can try to fix this. |
Hi @FabianGosebrink, could you give us a hint in how you think this should be implemented? I was looking at the implementation suggested on the manfredsteyer/angular-oauth2-oidc using the Lock API manfredsteyer/angular-oauth2-oidc#1423 Trying to replicate it on this library, but i am currently stuck on linking this library into my application locally with this error. I don't have a clue why this might be happening Anyway, if you could share your thoughts on this approach, thank you in advanced ^^ |
Hi, has anyone found a reliable workaround for this? We are still stuck with the issue on v18. @FabianGosebrink Is this something that is planned in the near future? Thanks again for your help. |
Version
16.0.0
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Steps to reproduce the behavior
A clear and concise description of what you expected to happen.
Additional context
The same problem was described in #1662
A temporary solution does not suit me well, because my token functions for 300 seconds.
My config:
AuthConfigModule added to the imports of the main AppModule.
The text was updated successfully, but these errors were encountered: