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
The user on the UserData context that is used to determine whether the session has expired is not being updated since the didComponentMount() function of Authenticator.
That means, at least in my case, that when I silentLogin() with the userManager, it stores internally the new reference of the user, but the context and therefore, the Authenticator state, is not being updated. It leads to a malfunction when I refresh the page and the Authenticator reevaluated if user.isValid() as it is taking the Authenticator internal user state and not the userManager user one.
I have bypassed this behavior with some embarrassing bunch of things (one of them is hardcoded the userData.user value.
FYI:
The app is a SPA. makeAuthenticator util function is located as in the README.md.
The WrappedComponent is a FunctionalComponent that renders three p[possible pages depending on the user state.
We are using the same callback for renew and login without refresh token (not provided by backend)
The text was updated successfully, but these errors were encountered:
The user on the UserData context that is used to determine whether the session has expired is not being updated since the didComponentMount() function of Authenticator.
That means, at least in my case, that when I silentLogin() with the userManager, it stores internally the new reference of the user, but the context and therefore, the Authenticator state, is not being updated. It leads to a malfunction when I refresh the page and the Authenticator reevaluated if user.isValid() as it is taking the Authenticator internal user state and not the userManager user one.
I have bypassed this behavior with some embarrassing bunch of things (one of them is hardcoded the userData.user value.
FYI:
The text was updated successfully, but these errors were encountered: