-
Notifications
You must be signed in to change notification settings - Fork 699
Description
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
| .pipe(delay(timeout)) |
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:
- Update your examplerxjs 7
- set a value that greater than expire time 2.147.483.647
Expected behavior
The token operation refresh will be started, over and over.