The store will not work correctly in the case when cookies are disabled.
require(['magentoStorefrontEvents'], function (magentoStorefrontEvents) {
magentoStorefrontEvents.context.setPage({
pageType: "MyAccount"
});
magentoStorefrontEvents.context.setContext("pageExtended", {
action: "login"
});
magentoStorefrontEvents.context.setShoppingCart({
id: 0 });
});
Login and Registration Form