How to handle authentication inside a chat window?


I’m creating a chat experience with @voiceflow/voiceflow-react. All is working fine I can authenticate.

But every time I authenticate the page refreshes and my chat starts over from the beginning.

I tried using auth0lock to display it inside the chat window (I can send divs and custom code as a chat message. But it still redirects to google when I click login with google for example and I have to start the convo all over again. Any way to handle this?

Also would be nice if the solution covers listing the chat widget across multiple domains.

Is my only option saving state inside voiceflow and re-opening the chat window on refresh? Ideally it should just open the login window in a div or iframe I send as a chat message. Is this possible, or do you have any other ideas?