Auth0 triggers auth/profile endpoint every few seconds. Is this expected behavior?

Hi @mmaccou

I am sorry about the delayed response to your inquiry!

Basically, if an user is not authenticated in your NextJS application, it should not be throwing 404 errors continually.

Are you redirecting to a proper auth endpoint as mentioned in this community post? Also, are you using loginWithRedirect() or loginWithPopup()? You could try to download our sample app and build upon it or replace parts and see if the behaviour is being reproduced.

Simply, I believe there might be a slight misconfiguration inside your application where it is not using a proper endpoint. You could examine the sample application and compare it with your own personal configuration.

If you have any other questions, let me know!

Kind Regards,
Nik