SalesforceCommerceCloud / pwa-kit

React-based JavaScript frontend framework to create a progressive web app (PWA) storefront for Salesforce B2C Commerce.
https://developer.salesforce.com/docs/commerce/pwa-kit-managed-runtime/guide/pwa-kit-overview.html
BSD 3-Clause "New" or "Revised" License
285 stars 138 forks source link

Feature: TAOB & Refresh Token TTL #2076

Closed bfeister closed 1 month ago

bfeister commented 1 month ago

Description

This PR implements:

Test Driving This

  1. Go to https://scaffold-pwa-ttl-taob.mobify-storefront.com/
  2. Create a user in the way that a customer would create one
  3. Create an order and complete the checkout flow
  4. Log in via Trusted Agent toolbar at the top of the app UI (you will use your Salesforce AM login credentials)
  5. Add an item to cart, complete usual checkout flow
  6. Go to Order History
  7. Verify that you see both the order from the user (not TAOB) and the order from the agent (TAOB)

Screenshots / Demo

https://github.com/user-attachments/assets/78430402-2cb1-4e92-9306-95a654159c61

Types of Changes

Breaking changes include:

  • Removing a public function or component or prop
  • Adding a required argument to a function
  • Changing the data type of a function parameter or return value
  • Adding a new peer dependency to package.json

Changes

How to Test-Drive This PR

Checklists

General

Accessibility Compliance

You must check off all items in one of the follow two lists:

or...

Localization