Open abdelbe5 opened 8 months ago
I'm having the same problem. When I call the refreshToken method, it refreshes the token. As a workaround, I created an interval method that checks every minute if the token has expired and if it will expire in the next minute, it calls refreshToken.
But I'm curious what the problem is with the setupAutomaticSilentRefresh. Maybe the client is not configured properly or the issuing server is misconfigured.
I'm using angular v17 and "angular-oauth2-oidc: "^17.0.1"
Best regards and thanks
Our app handles Authorization code flow (+ pkce) authentication via azure ad, everything works fine except for the "setupAutomaticSilentRefresh()" which does not trigger the token renewal. I tried setting a "timeOutFactor" for the expiration threshold of the token but it did not seem to work either.
I tried using the refreshToken() method explicitly and token is getting refreshed without any issues.
The app is scaffolded using JHipster and is using angular version 10.0.0 with "angular-oauth2-oidc": "10.0.3" Can you guys come with any help regarding this issue ?
Thanks