angular-auth-oidc-client icon indicating copy to clipboard operation
angular-auth-oidc-client copied to clipboard

[Bug]: popup closes immediately when angular dev tools extension installed in Chrome

Open jnizet opened this issue 1 year ago • 1 comments

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

jnizet avatar Jan 02 '24 10:01 jnizet

React Developer Tools too

RutsuKun avatar Mar 06 '24 13:03 RutsuKun