Hi,
In the React: Token Renewal tutorial, the renewSession function calls the setSession function. And the set session function has the following code in it.
// navigate to the home route
history.replace('/home');
this means, every time the session is renewed (e.g. page refresh), the route is changed to the home route.
This is not what I want, let’s say I’m currently in the route /profile, and I hit f5, how can I stop the navigation to the home route stemming from the renew token call? If I take the history.replace call out of setsession, the session is not actually renewed until page refresh.
Let me know a good way to achieve this.
Thanks