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
I am not sure if I am misunderstanding how things work, but I am seeing what feels like strange behavior. Once the user signs in to the OAuth provider (keycloak in my case), they are send back to the callback uri. The first actions fired from redux are as such:
However, on reload, I get the expected behavior:
The fact that USER_EXPIRED is called (and thereby makes store.oidc.isLoadingUser false) is confusing to me, and is causing some UI issues. Perhaps I'm not understanding some fundamental part of oidc, but how can I maintain in the store that the user is still being retrieved?
For some background, I call loadUser directly after the store is defined:
// in index.jsconststore=createStore(rootReducer,<middleware>);
loadUser(store, userManager);
sorry for the late reply. Your config looks good, I guess this can happen when the access token in your app state has expired, therefore USER_EXPIRED fires. Then the token gets renewed and USER_FOUND is dispached.
I am not sure if I am misunderstanding how things work, but I am seeing what feels like strange behavior. Once the user signs in to the OAuth provider (keycloak in my case), they are send back to the callback uri. The first actions fired from redux are as such:
However, on reload, I get the expected behavior:
The fact that
USER_EXPIRED
is called (and thereby makesstore.oidc.isLoadingUser
false) is confusing to me, and is causing some UI issues. Perhaps I'm not understanding some fundamental part of oidc, but how can I maintain in the store that the user is still being retrieved?For some background, I call
loadUser
directly after thestore
is defined:userManager
is defined like this:The text was updated successfully, but these errors were encountered: