oidc-client-ts icon indicating copy to clipboard operation
oidc-client-ts copied to clipboard

Behaviour of addAccessTokenExpiring callback changed between 2.4.0 and 3.0.1

Open m4rc77 opened this issue 1 year ago • 7 comments

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 addAccessTokenExpiring is 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 addAccessTokenExpiring is called after the token is refreshed !?!

Could this be a Bug?

m4rc77 avatar Aug 16 '24 13:08 m4rc77