setupIdTokenTimer() does not with rxjs 7 #1258
Labels
bug
For tagging faulty or unexpected behavior.
investigation-needed
Indication that the maintainer or involved community members may need to investigate more.
SetupIdTokenTimer function uses delay() operator. It works well with rxjs 6. But when you update your project angular 14 and rxjs 7 also your expire time is greater than 24.6 days. The Delay operator works immediately
angular-oauth2-oidc/projects/lib/src/oauth-service.ts
Line 457 in d95d7da
Describe the bug
Rxjs 6. has custom implementation (without interval or timer), but RXJS 7 uses interval/timer. It has a max value.
https://developer.mozilla.org/en-US/docs/Web/API/setTimeout#maximum_delay_value
Stackblitz example
[Provide a minimal stackblitz based example that shows the issue. For this, you can use the example application of this repo and the identity providers used here.](https://stackblitz.com/edit/angular-ivy-jv2xa4?file=src/app/app.component.ts)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The token operation refresh will be started, over and over.
The text was updated successfully, but these errors were encountered: