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

[Bug]: "Checking: silentRenewRunning" is triggered for all other unauthenticated configIds #2060

Open
moky80 opened this issue Dec 30, 2024 · 0 comments

Comments

@moky80
Copy link

moky80 commented Dec 30, 2024

Version

19.0.0

Please provide a link to a minimal reproduction of the bug

https://github.com/moky80/test-angular-auth-oidc-client/blob/42f91852be14ae8974a65fe0a0c24484bf6ad9a9

Please provide the exception or error you saw

[DEBUG] google - Checking: silentRenewRunning: false, isCodeFlowInProgress: false - has idToken: false - has userData: false
[DEBUG] facebook - Checking: silentRenewRunning: false, isCodeFlowInProgress: false - has idToken: false - has userData: false

The complete log: https://github.com/moky80/test-angular-auth-oidc-client/blob/42f91852be14ae8974a65fe0a0c24484bf6ad9a9/log/20241230-cognito-authenticated-silentRenew_once_but_not_again.log#L43

Steps to reproduce the behavior

- Having 3 providers Cognito, Facebook, Google as in https://github.com/moky80/test-angular-auth-oidc-client/blob/42f91852be14ae8974a65fe0a0c24484bf6ad9a9/src/app/auth/auth.config.ts#L3
- Sign in a Cognito user, the user is authenticated
- For every "Checking: silentRenewRunning" cycle, the library checks not only Cognito but also the other 2 configs even though no user from these providers are being authenticated.

A clear and concise description of what you expected to happen.

"Checking: silentRenewRunning" should only be triggered for the current authenticated config.

Additional context

No response

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

No branches or pull requests

1 participant