Hello, I now need to do some operations during silent update. When I update silently, is there a silent update event?
Let me describe my needs. My main site uses the code flow pkce with refresh tokens of angular-auth-oidc-client. The subsite requests the main site to obtain the token. When the subsite requests it, the main site may be silent renew. At this time, the token cannot be requested. I need Do processing in the silent renew event.
@fengzhihenxs , according to my observations the following event is fired by PublicEventService after token refresh:
{authorizationState: "Authorized", validationResult: "Ok", isRenewProcess: true}
But I am not a committer and don't know if you can rely on this.
@stefanocke Thank you. But I don't think it is. I found that the "IdTokenExpired" event is triggered before each silent update.
I was looking into the code, and it appears there's a oidc-silent-renew-init event that is raised in the refresh-session-iframe.service at the beginning of the refresh operation, but nothing is raised during or after.