Skip to content

Silent Refresh not working in simulation mode (when Toggle Device Toolbar enabled in Chrome Browser) #1474

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

Open
Ezhilisai opened this issue May 15, 2025 · 0 comments

Comments

@Ezhilisai
Copy link

I use 17.0.2 version of angular-oauth2-oidc, Angular V17 and i have silent refresh enabled. Silent renew is working fine in all the browser and real mobile devices, but not working when browser has Toggle Device Toolbar enabled in devTools (Chrome, Edge and i guess all browsers).

To Reproduce
Steps to reproduce the behavior:

  1. Go to Developer Tools
  2. Enable 'Toggle Device Toolbar' or Ctlr+Shift+M
  3. Have Mobile/Tablet view enabled.
  4. Silent Renew iframe is not loading the url when renewing the token.

My question
Is there any restrictions applied with angular-oauth2-oidc to restrict iframe url getting loading at emulation mode ?

Browser

  • Chrome - (Toggle Device Toolbar - View)

Additional context
Getting 'Automatic silent refresh did not work' error when debugging. I did debug the silentRefresh() function and found body.appendChild(iframe) is happening and that iframe url is not loading the token.oauth2.

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