catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

feat: use customer access tokens for customer logins

Open chanceaclark opened this issue 1 year ago • 3 comments

What/Why?

Uses the new approach of using Customer Access Tokens (CATs) when login in as a customer. This change utilized the Storefront API Token (APIT) instead of the Storefront Customer Impersonation Token (CIT) to authenticate requests as CATs will only be generated using a APIT.

[!TIP] Reviewing by commit will be helpful.

Testing

Every commit was individually tested so that Catalyst could keep working depending on the state. If need be, try to roll back to a previous commit if not working correctly.

Releasing

  1. Cut a release before merging
  2. Merge this PR
  3. Immediately cut another release

chanceaclark avatar Aug 14 '24 16:08 chanceaclark

🦋 Changeset detected

Latest commit: 8142e79737423b1c69f665412484c2d41c55dfc0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@bigcommerce/catalyst-client Minor
@bigcommerce/catalyst-core Minor
@bigcommerce/create-catalyst Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Aug 14 '24 16:08 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
catalyst-latest ✅ Ready (Inspect) Visit Preview Nov 4, 2024 5:00pm
5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 5:00pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 5:00pm
catalyst-test-store ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 5:00pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 5:00pm
catalyst-unstable ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 5:00pm

vercel[bot] avatar Sep 09 '24 17:09 vercel[bot]

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-3wv1owqbw-bigcommerce-platform.vercel.app

🖥️ Desktop

We ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:

Category Score
🟠 Performance 80
🟢 Accessibility 96
🟢 Best practices 100
🟠 SEO 82

📱 Mobile

We ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:

Category Score
🟢 Performance 96
🟢 Accessibility 96
🟢 Best practices 100
🟠 SEO 85

github-actions[bot] avatar Nov 04 '24 17:11 github-actions[bot]