I know it's a saturday, so maybe eventually when s...
# support-questions-legacy
r
I know it's a saturday, so maybe eventually when someone is available, I'm a little confused about the React session timeout behavior, which is yielding a white-screen when my user's sessions time out. More in the thread.
So here is a screenshot for context:
So if I let my session expire, I get a white screen of death, and almost no XHR network calls.
And if I intentionally log out, I get much the same behavior:
^ it grabs the assets, but doesn't make even the first if network calls, unexpectedly.
I have to go to the /logout page manually to get it to redirect me to the authentication page before things will start working again as expected.
So, overall what is the recommended way to to deal with the case of session timed out or getting deep linked to protected routes of the app that require login?
r
Hmm. The state of cookies is strange. The value of sIRTFrontend is remove, but there exists a sIdRefreshToken. That should not happen. How did you get to that state?
@Roy R
If this is reproducible, maybe we can get on a quick debug call? Will be easier to fix that way.
r
Hmmmm
If by reproducable, you mean happens about 100% of the time, yeah, it's reproducable.
r
Yea
r
(pretty simply by logout, much less timely-ly by session timing out)
Sure, I'm up for a call if you are.
r
Sure. I’ll send a zoom link right away
r
Thank you for walking through the pieces with me! Looks like I have a variety of additional avenues to pursue.
r
happy to help 🙂 For future ref of anyone reading this thread, the issues were: -
apiGatewayPath
setting was missing on the backend in the appInfo config. This is required cause you used a proxy in front of the auth service with a path of
/auth
. Though I'm not sure how this affected the missing access token cookie in the signout request. But after setting this config, it worked. - CORS misconfiguration caused issues where APIs failed leading to white screen of death. -
<EmailPasswordAuth />
wrapper could have been used instead of building custom
useAuth
hook. Please feel free to reach out if more issues come up.
3 Views