Summary
At a store's checkout, we have an option to log out.
Unfortunately, the request made to the portal application, is not deleting the cookies of the user, remaining on the OrderForm with the email ID from this client, so the client cannot log out using this option
Simulation
-
Go to
.myvtex.com
and login from My Account using email and code; -
Once you log in, make a cart and go to checkout;
-
Complete the Profile step and go to Shipping, then try to log out from the "It's not me, end session" link.
Checkout performs the request normally, making the request along with the orderFormId
However, Portal Application is not deleting this user's cookie and thus returning the same user, with this the email is kept in the orderForm and consequently, it is not logged out.
Workaround
Use a JS custom to force the logout