question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome hangs on createAuth0Client

See original GitHub issue

Describe 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

  1. Fill in your own Auth0 details in plugins/auth0.js near the bottom (search for FIXME).
  2. Run npm run dev in the top-level directory and navigate in Chrome (Beta) to the URL provided (should be http://localhost:3000).
  3. Log in when prompted. You should be redirected to the demo page. I’ve added a sign out button to make testing easier.
  4. Reload the page. You should now see a loading spinner. The app is waiting on createAuth0Client to 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-js used: 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:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
krisdagescommented, Oct 22, 2020

With that particular version of 86 I was still having it, but after upgrading to 87.0.4280.27 it seems to be resolved.

1reaction
adamjmcgrathcommented, Oct 7, 2020

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 Monday 86.0.4240.75 and it seems to work fine.

I can’t see anything in the changelog that might have caused the issue 🤷

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found