Refresh timer not started after page reload #683
Labels
bug
For tagging faulty or unexpected behavior.
investigation-needed
Indication that the maintainer or involved community members may need to investigate more.
When using spring boot authentication server with password flow, there is no id token sent from the server. If now the page is reloaded after a successful login, the token refresh timer does not start.
After debugging into the library, the following line in
setupRefreshTimer()
seems to cause the problem:angular-oauth2-oidc/projects/lib/src/oauth-service.ts
Line 301 in a1652dc
From my understanding, the timer reset & restart should not only be limited to a valid id token present.
Doing a
if (this.hasValidIdToken() || this.hasValidAccessToken()) {
should possibly fix the problem.
The text was updated successfully, but these errors were encountered: