angular-auth-oidc-client
angular-auth-oidc-client copied to clipboard
[Bug]: This method, this.oidcSecurityService.checkAuthMultiple().subscribe((loginResponses: LoginResponse[]) has a bug.
Version
14.1.5
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
I am using the: function -> this.oidcSecurityService.checkAuthMultiple().subscribe((loginResponses: LoginResponse[])
I have 6 clientId's. Only one will ever be logged-in at any one time.
This is what I have in the CheckAuthMultiple:
this.oidcSecurityService.checkAuthMultiple().subscribe((loginResponses: LoginResponse[]) => {
// This loginResponses comes 12 times.
});
Can you check the code to see if the subscribe is sending multiple times? I have 6 clientId's and what I observe is that it sends the subscription 12 times. It should only send 1 based on the login event. I should receive one loginResponses for each login/logout event.
### Steps to reproduce the behavior
Use at least 2 cliendId's when using this.oidcSecurityService.checkAuthMultiple().
### A clear and concise description of what you expected to happen.
I should receive one loginResponses for each login/logout event.
### Additional context
I will try to look at the code if I have time...
I had the same issue before, and it's discussed here: https://github.com/damienbod/angular-auth-oidc-client/issues/1566
@fritzwf Does the linked issue help you?
Greetings Damien