I've been trying to set up a React app not to log out (unless the user clicks the "log out" button) but have been unsuccessful so far. I have useRefreshTokens enabled and the app requests getAccessTokenSilently at each API call (which automatically happen every 5 minutes).
The current behaviour is that after about 24 hours the app redirects back to the login page.
The expected behaviour is that the app stays logged in until the user logs out manually.