Skip to content

Conversation

@afrith
Copy link

@afrith afrith commented Sep 24, 2019

This is a tricky one to explain.

It seems that the app inside the hidden iframe re-renders several times before the outer app tries to grab the token from it. This means that isRefreshingInIframe is no longer true in the TokenManager in the hidden iframe, so the <div id="token"> is not rendered. This means that the outer app can't find the token when it looks for it, and it gets stuck in an infinite loop of "checked for new token, not found yet".

This PR makes isRefreshingInIframe an instance variable in the TokenManager, so it persists through the refreshes, so the token div is still there inside the iframe when the outer app comes looking for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant