The attempt at silent refresh during the runInitialLoginSequence method can cause extremely long page loads if no token is present depending on the server used #147
Labels
investigation-needed
Issues requires further investigation
Uh oh!
There was an error while loading. Please reload this page.
There should be a check to see if the access token is null before attempting the silent refresh near the end of the initial login script. Without it, the silent refresh will generate what is effectively a guaranteed to fail request that can take a long time since the server may never respond to it. Since this method directly blocks the initial page load it can delay the initial time load by a fairly long time (20-30 seconds) and cause some weird page reloading behavior.
The Demo server seems to handle it okay, but I attempted it on keycloak for instance and it made initial loads take 30 seconds until I added the null check. (other than that it mostly works great for keycloak btw, keycloak itself was the bigger bear in getting it to behave right.)
For example:

thanks for the demo project it has been very helpful too.
The text was updated successfully, but these errors were encountered: