Auth0 Login Page Looping - Angular 6

Hi, I am using auth0 authentication in my Angular6 Application. When I use button to trigger auth0 login page it works fine. But instead of that I call the method in constructor, same auth0 page repeating 2 to 3 times.
Any suggestion?

Regards,
Udhayakumar

Please share your authentication flow code (with sensitive info removed) for us to review.

Put a console.log(“login button fired”) in your button event and comment out your auth0 code. I bet it does multiple times. Usually the cause of that is missing unsubscribe.{somesubject} onUnload(). So most likely you are dealing with a standard Angular issue not a Auth0 specific. That being said code is needed for further help like Jeremy said.

1 Like

Hi ,
Thanks for the reply.
We have changed the implementation for time being. I will come back to you.

Regards,
Udhayakumar

Hi ,
Thanks for the reply.
I understand your suggestions. I will come back once I check with ‘unsubscribe’.

Regards,
Udhayakumar