Skip to content

setupIdTokenTimer() does not with rxjs 7 #1258

@mahmut-gundogdu

Description

@mahmut-gundogdu

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

setupIdTokenTimer

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:

  1. Update your examplerxjs 7
  2. set a value that greater than expire time 2.147.483.647

Expected behavior
The token operation refresh will be started, over and over.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFor tagging faulty or unexpected behavior.investigation-neededIndication that the maintainer or involved community members may need to investigate more.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions