During refresh, how to wait until auth token is returned to load controllers? (AngularJS)

When refreshing my AngularJS SPA, it takes a moment for silent auth to return. However, the app’s controllers load before it returns and throws errors on API calls that require the token. Is there a way for me to wait on the token renewal to load any subsequent controllers?

Good morning @jessicaouyang, welcome to the Auth0 Community!

Is this a private repo or a public repo? I’m interested in what your describing as occurring here. It sounds like very application specific. When you get a chance can you direct message me a HAR file of your login flow where it exhibits the issue during use, along with your tenant name? Please let me know if you have any questions!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.