If a user changes their OIDC session through another site, then loads a page on my site, there is a delay before the change in session is noticed. This allows a brief opportunity for the user to interact with my site under the original session.
I believe this could be addressed by having the start function in CheckSessionIFrame.js call the trigger function immediately, as well as setting the interval.
The interval can already be set in the options, FWIW.
I'm not sure doing the check at start time will always help your situation, as you could have already started, then the user signs out. So I think you will always have the possibility of this delay.
Ok, I changed the check to run immediately on start. It's been pushed to npm in 1.5.0-beta.4.
Thank you! I acknowledge that there will always be a small window of opportunity for the old session to be used. This should help, though, so I appreciate the change.
Most helpful comment
Thank you! I acknowledge that there will always be a small window of opportunity for the old session to be used. This should help, though, so I appreciate the change.