You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This also mean that if we set tokenRefreshInSeconds: 60, we will have to wait a lot of time before being able to re-use forceRefreshSession.
I'm using this function to refresh the session when I update the user's profile. The user object in my app is constructed with the userData that I get from event UserDataChanged.
Version
17.0.0
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
When using
forceRefreshSession
it setstorageSilentRenewRunning
in the storage.The problem is that when the refresh finish, the value is not reset, meaning that we can't re-use the
forceRefreshSession
.Currently, when using
forceRefreshSession
, the only way thatstorageSilentRenewRunning
is reset is to wait for theperiodicallyCheck
(https://github.com/damienbod/angular-auth-oidc-client/blob/main/projects/angular-auth-oidc-client/src/lib/callback/periodically-token-check.service.ts#L105).This also mean that if we set
tokenRefreshInSeconds: 60
, we will have to wait a lot of time before being able to re-useforceRefreshSession
.I'm using this function to refresh the session when I update the user's profile. The
user
object in my app is constructed with theuserData
that I get from eventUserDataChanged
.Steps to reproduce the behavior
tokenRefreshInSeconds: 60
forceRefreshSession
storageSilentRenewRunning
in the storageperiodicallyCheck
until this is resetA clear and concise description of what you expected to happen.
Once
forceRefreshSession
is called, it should callresetSilentRenewRunning
.Additional context
I will provide a PR.
The text was updated successfully, but these errors were encountered: