oidc-client-ts
oidc-client-ts copied to clipboard
Behaviour of addAccessTokenExpiring callback changed between 2.4.0 and 3.0.1
We have a running application with oidc-client-ts version 2.4.0. We are using automaticSilentRenew: true, accessTokenExpiringNotificationTimeInSeconds: 60 and have registered a callback via addAccessTokenExpiring for logging purposes.
We did a test-update to from 2.4.0 to 3.0.1 and realized a change in behavior.
With 2.4.0:
- Token is going to expire in ~60s
- callback registered via
addAccessTokenExpiringis called before the token is refreshed - The token is silently renewed
With 3.0.1
- Token is going to expire in ~60s
- The token is silently renewed
- callback registered via
addAccessTokenExpiringis called after the token is refreshed !?!
Could this be a Bug?