Skip to content

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

@Ezhilisai

Description

@Ezhilisai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions