Description
Hey!
First of all, I would like so say thank you for your project! It helped me to lot to understand the concepts and I could successfully apply it in my projects! Keep it up!
I have found out something which worries me. If I run the whole app environment (specified in the README) and if I retrieve the store somewhere, I do not see the User properly persisted in the redux store. What I have just done is to log the redux state for example at UserInfo page.
import store from '../configureStore'
import {createHashHistory} from 'history';
console.log(store(createHashHistory()).getState())
Reproduction scenario:
- Log in IdentityServer
- Open UserInfo page
- As a log result, I got the following:
counter: {count: 0, isLoading: false}
router: {location: {…}, action: "POP"}
oidc: {user: null, isLoadingUser: false}
__proto__: Object
As you can see the user is null. Is it the expected behaviour?
Of course, if I generally connect a component to the redux store, and I retrieve the user data via props, it can be done successfully and I can read all the relevant data (access_token, etc).
But let's say that we are at the UserInfo page showing all the data. If the access_token is refreshed (with a silentRenew) then the page is not rerendered. Is it the expected behaviour by you? I would expect a rerender, since the underlying User has got another access_token from the silentRenew.
Thank you very much for your help, I appreciate it!
Kind Regads,
Daniel Moka