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]: popup closes immediately when angular dev tools extension installed in Chrome #1882

Open
jnizet opened this issue Jan 2, 2024 · 1 comment

Comments

@jnizet
Copy link

jnizet commented Jan 2, 2024

Version

16.0.1

Please provide a link to a minimal reproduction of the bug

NA

Please provide the exception or error you saw

NA

Steps to reproduce the behavior

Install and enable the Angular dev tools extension in Chrome.
Then initiate an authorization with popup (I've noticed that the bug happens if the authorization is launched immediately, without waiting for a click on a button from the user).

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

The popup should open and display the login page of the authorization server (keycloak in my case). But instead, the popup closes immediately.

The problem seems to be caused by this line of code: https://github.com/damienbod/angular-auth-oidc-client/blob/d71e3bf093fd27547ef4db7e726e3794f36648d5/projects/angular-auth-oidc-client/src/lib/login/popup/popup.service.ts#L76

The listener immediately receives an event with the following `data`:


{"isIvy":true,"isAngular":true,"isDebugMode":true,"isSupportedAngularVersion":true,"isAngularDevTools":true}

Additional context

No response

@RutsuKun
Copy link

RutsuKun commented Mar 6, 2024

React Developer Tools too

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

2 participants