Log in from different subdomain and getting state error

Log in from different subdomain produces state error

I tried by following above step

I have two sub domain and both are auth0 lock

and I tried login and got error

and i can’t find parseHash in auth0 lock and could you provide code auth0-lock in two sub domain?

Hi @team4

Welcome to the Auth0 Community.

parseHash is part of the auth0.js library https://auth0.github.io/auth0.js/WebAuth.html#parseHash so it depends on whether or not you are using this library.

After referencing the post you linked, I believe essentially when you land on your second domain you need to redirect to /authorize so the application can see if there’s a session, if not it will ask for credentials.

Warm regards.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.