Navigate the user directly to the login page if not authenticated

Hi @Maikki / @notronwest,

Did either of you find a solution to this?

I’d like to redirect users to the login page if they hit my /login callbackUrl directly, but it also leads to an infinite loop.

I’ve tried using conditions with the isAuthenticated, user and isLoading props, but isLoading is not set to false when a user is not authenticated.

Using only isAuthenticated and user leads to an infinite loop and ignores my code to handle actual the actual login process because isLoading and isAuthenticated are true and false, respectively, for a few seconds.

It seems it’s been discussed recently amongst the Auth0 engineers.

Alex