Skip to content

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

@NickSt

Description

@NickSt

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:
image

thanks for the demo project it has been very helpful too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions