{"section":"known-issues","requestedLocale":"en","requestedSlug":"checkout-has-no-clarity-about-divergences-between-the-customer-identified-in-the-cart-and-the-user-logged-in-to-the-store","locale":"en","slug":"checkout-has-no-clarity-about-divergences-between-the-customer-identified-in-the-cart-and-the-user-logged-in-to-the-store","path":"docs/en/known-issues/Checkout/checkout-has-no-clarity-about-divergences-between-the-customer-identified-in-the-cart-and-the-user-logged-in-to-the-store.md","branch":"main","content":"## Summary\n\n\n\nChanges on user authentication made through VTEX ID don't automatically update the orderForm's personal information (profile and address).\n\nThis can lead to some unwanted behaviours, such as:\n\n\n1. Authenticated user adds personal information to the cart, then logs out via \"My Account\" or logs in with a different email, but personal information is persisted unmasked on the cart.\n\n2. Unauthenticated user with complete profile identifies themselves through email, which causes their personal information to be automatically filled and masked on the cart, then logs in with a different email but personal information is persisted masked on the cart (and can't be edited)\n\n3. Personal data is updated on the user's profile through \"My Account\" page but this change is not reflected on existing orderForm in which this user is identified\n\n\n#### Simulation\n\n\n\n**Scenario 1:**\n\n\n- Authenticate through the storefront using an email\n- Create a new cart and add personal data with the same email\n- Return to the storefront, then log out or log in with a different user\n- Go back to the cart; the previously added personal data will still be available and unmasked\n\n**Scenario 2:**\n\n\n- Unauthenticated, create a new cart and add email from a complete profile (personal data will be automatically filled and masked)\n- Log in with a different user (especially using Google/Facebook as identity providers)\n- Go back to the cart; the previously added personal data will still be available and masked and it will not be able to edit the information\n\n**Scenario 3:**\n\n\n- Create a new cart and add personal information\n- Return to the storefront, then log in with teh same email used on the cart\n- Update some profile or address information\n- Return to the cart; the personal data will not have been updated\n\n\n#### Workaround\n\n\n\nSome scenarios can be handled by implementing Cart Data Clean Up on Log Out via the following documentation, using Session Watcher and the `/changeToAnonymousUser` API:\n\nhttps://developers.vtex.com/docs/guides/vtex-io-documentation-cleaning-cart-data-on-log-out"}