What I’m trying to do is to add additional field to sign up page, so I’ve decided to customize lock template. After I switched to that template I am always redirected back to login page when logged in via google. It is also happen when I am just switching to Classic experience. So google works only when I’m using New experience.
One more issue is with user returned from useAuth hook. I have another app that is actually using same code except that it has additional callback page where user checked for existence and this user is always undefined.
I’m using react-auth0 and my app wrapped with provider, I also only added additional field and switched logo in the template. All suggested by the doc configs added.
No, I don’t use such functions
I don’t even have any button to click
I use withAuthenticationRequired HoC, so user redirected automatically to login page if not authenticated
Behavior that I’m seeing:
User opens app (not authenticated)
User is redirected to Universal Login page
User clicks “Sign in with Google” button
User logs into Google, redirected to my app and then immediately is redirected back to the Universal Login page instead of the app
It looks like you’re using the default Auth0 developer keys for the Google social connection. The developer keys will work for simple testing, but auth will not persist page refreshes or navigating between pages which I think might be what is happening.