I have a ReactJS app which uses auth0 Lock. This is my login flow:
- User visits auth.mydomain.com
- User gets redirected to auth0 Lock
- User gets redirected to auth.mydomain.com (callback url) after successful login
- User again redirected to their own dashboard userId.mydomain.com/app (redirect url)
auth.mydomain.com is white-listed as callback url. We have sub-domains for each user where they will have access to dashboard from userId.mydomain.com/app after login.
When the user finally ends up in userId.mydomain.com/app after login flow (Step 4), the session seems to be lost. Session is maintained until Step 3.
We don’t store any session data in session/localstorage as advised in your docs. So my guess is session in memory gets cleared in the final redirect (Step 3 -> Step 4). Is there a way to continue the session from Step 3 to Step 4?
Thanks in advance!