Chrome hangs on createAuth0Client
See original GitHub issueDescribe the problem
createAuth0Client hangs in Chrome when loading for a user who is already logged in. It does not hang if there is no logged in user.
What was the expected behavior?
If there is a user logged in, the page should load immediately.
Reproduction
Use the test application in this repository: https://github.com/modeswitch/auth0-test-app
- Fill in your own Auth0 details in
plugins/auth0.jsnear the bottom (search forFIXME). - Run
npm run devin the top-level directory and navigate in Chrome (Beta) to the URL provided (should behttp://localhost:3000). - Log in when prompted. You should be redirected to the demo page. I’ve added a
sign outbutton to make testing easier. - Reload the page. You should now see a loading spinner. The app is waiting on
createAuth0Clientto finish.
The problem is not reproducible in Firefox and some earlier versions of Chrome as far as I’ve checked.
Environment
Please provide the following:
- Version of
auth0-spa-jsused: v1.12.1 - Which browsers have you tested in? Chrome Beta Version 86.0.4240.68 (Official Build) beta (64-bit) on Fedora 31
- Which framework are you using, if applicable (Angular, React, etc): Nuxt
- Other modules/plugins/libraries that might be involved:
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
auth0 always shows login dialog on browser refresh
My application is more or less empty except for the auth0 setup. I do however see some differences in different browsers. Chrome logs...
Read more >createAuth0Client is not working in chrome mobile - android
Hello dear community, I am using https://cdn.auth0.com/js/auth0-spa-js/1.2/auth0-spa-js.production.js and ...
Read more >Chrome hangs on Google account login pages
I'm on macOS 10.15.4, using Google Chrome 81.0.4044.122. Already tried reinstalling Google Chrome (removing all of my preferences and user ...
Read more >@auth0/auth0-spa-js | Yarn - Package Manager
[SDK-1127] Delay removal of iframe to prevent Chrome hanging status bug #240 #376 (adamjmcgrath); [SDK-1125] createAuth0Client now throws errors that are ...
Read more >https://raw.githubusercontent.com/auth0/auth0-spa-...
... **Fixed** - [SDK-1127] Delay removal of iframe to prevent Chrome hanging status bug #240 ... [SDK-1125] createAuth0Client now throws errors that are...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

With that particular version of 86 I was still having it, but after upgrading to 87.0.4280.27 it seems to be resolved.
Looks like this is only an issue with
86.0.4240.68- I’ve just run it on the latest Beta that got released on Monday86.0.4240.75and it seems to work fine.I can’t see anything in the changelog that might have caused the issue 🤷