We have the Klaviyo snippet integrated in our React app.
We identify the user when the login.
Looking in the docs https://developers.klaviyo.com/en/docs/javascript_api we see no way of “resetting” the user when they logout.
What is the recommendation for this?
Solved
What is the recommended flow for login/logout in React app
Best answer by KeviSunshine
Hi
Ah, I see, that makes sense. I am not aware of any official “reset” API call or functionality that Klaviyo offers. However, check out this answer from ~1 year ago:
I would do some testing with removing the klaviyo cookie(s) and seeing how that works–that seems to be the best way to handle this.
There’s some talk about needing to refresh the page in that thread–I am skeptical as to whether that’s necessary. I would definitely try it out without that at first and see how it works.
Try it out and let us know!
Kevin.
Log in to the Community
No account yet? Create an account
Use your Klaviyo credentials
Log in with Klaviyo
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
