hlxsites / aem-boilerplate-commerce

Use this repository template for new AEM+Commerce projects.
https://main--aem-boilerplate-commerce--hlxsites.aem.live
Apache License 2.0
27 stars 21 forks source link

sets shopperContext on page load based on user token presence #153

Closed sirugh closed 1 month ago

sirugh commented 1 month ago

USF-1650

This PR updates storefront-auth to latest version that includes setting of shopperContext on login/logout. It also adds some initialization logic to ensure that when the page loads, the shopper context is set according to whether user is logged in or not (based on cookie presence).

This PR also adds tests and adds a "fix" for the tests where after each test we now delete any created customers (if logged in) just to keep things tidy.

Test URLs:

aem-code-sync[bot] commented 1 month ago

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed. In case there are problems, just click a checkbox below to rerun the respective action.

Commits * [a3f1916](https://github.com/hlxsites/aem-boilerplate-commerce/commit/a3f191687672f803440b7204e2c46a545f2e1dfa) :arrows_counterclockwise: (latest) * [4263561](https://github.com/hlxsites/aem-boilerplate-commerce/commit/42635617df0ccd516e6e76e17208aee84aac8dbe) :white_check_mark: * [a94769b](https://github.com/hlxsites/aem-boilerplate-commerce/commit/a94769b65de15823f66145a1b732a5d4d8ed7e95) :white_check_mark: * [fcf647b](https://github.com/hlxsites/aem-boilerplate-commerce/commit/fcf647bf89a90abba6d0d9598852dfd4378dbaf3) :white_check_mark:
aem-code-sync[bot] commented 1 month ago
Page Scores Audits Google
:iphone: / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
:desktop_computer: / PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI