Auth0 Home Blog Docs

Auth0 Login Page Looping - Angular 6

login

#1

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


#2

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


#3

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.


#4

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

Regards,
Udhayakumar


#5

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

Regards,
Udhayakumar