Angular-auth-oidc-client: silent-renew problems when using webpack hot module replacement

Created on 31 May 2018  路  3Comments  路  Source: damienbod/angular-auth-oidc-client

I'm having an issue when webpack runs its hot module replacement.

What's happening is that when the replacement happens, the oidc library has a second instance loaded. When that happens there are now two listeners for the CustomEvent oidc-silent-renew-message. This causes a race when the silent renew happens and then a failure to renew.

I believe the library should be adding an instance id to the state and only processing the CustomEvent if the instance id matches. If the instance id does not match, it should unsubscribe.

bug

All 3 comments

PR submitted here: #236

@profet23 thanks

release 6.0.1

Was this page helpful?
0 / 5 - 0 ratings