Stuck during login process

I’m using the following libraries in my local development setup:

    "auth0-angular": "^4.1.0",
    "auth0-lock": "^v9.1.4"

When I login in the application, I see a popup with a message beneath it (for a very short while): “enter your credentials in the popup window”. When the popup goes away, I am not redirected to the authenticated page of my application, and only part of the login dialog is visible on the screen.

Some extra checks that I did:

  • I am indeed not authenticated (I can verify this by trying my authenticated dashboard
  • Allowed callback URL’s are OK
  • CORS is OK
  • No errors in the javascript console
  • Sign up works partly: user is created, but again I am not redirected correctly

I know the libraries are a bit out of date but I have a similar application in production with the same version and that application works! I cannot figure out the difference :frowning:

Thanks

Are you using Popup mode for Lock? If so, the browser will not be redirected, and will instead be handled in the callback function:

Capturing a HAR file of the issue would also be useful:
Generate and Analyze HAR Files. Please remember to remove any passwords or sensitive information before uploading it.

Hi prashant,

Thanks for taking the time to answer.
Your tips will come in handy for troubleshooting in the future.

I eventually did find the problem though.

It seems that one of the libraries below introduced some incompatible change

"auth0-angular": "^4.1.0",
"auth0-lock": "^v9.1.4"

If fixed it by pinning the versions (notice the version range is gone)

"auth0-angular": "4.1.0",
"auth0-lock": "v9.1.4"