bigcommerce / catalyst

Catalyst - for Composable Commerce
https://catalyst-demo.site
MIT License
91 stars 64 forks source link

feat: use customer access tokens for customer logins #1262

Open chanceaclark opened 1 month ago

chanceaclark commented 1 month ago

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.

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: 6bca7e699f2f807323f070c769599a07262a10e7

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

vercel[bot] commented 4 days ago

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

Name Status Preview Comments Updated (UTC)
catalyst-latest ✅ Ready (Inspect) Visit Preview Sep 13, 2024 6:19pm
5 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **catalyst-1millionproducts-store** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-1millionproducts-store/Etm38NLsPACfS5VhEpGdNsGchtxP)) | [Visit Preview](https://catalyst-1millionproducts-store-git-983f38-bigcommerce-platform.vercel.app) | | Sep 13, 2024 6:19pm | | **catalyst-au** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-au/EkoJRakQivH5AMRy4qx8oMdZ3SGV)) | [Visit Preview](https://catalyst-au-git-customer-access-tokens-bigcommerce-platform.vercel.app) | | Sep 13, 2024 6:19pm | | **catalyst-test-store** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-test-store/9Hh148i9sR1BRrE8KZqt4zNNUbDg)) | [Visit Preview](https://catalyst-test-store-git-customer-ac-60c964-bigcommerce-platform.vercel.app) | | Sep 13, 2024 6:19pm | | **catalyst-uk** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-uk/BswjDLgSfyW6i9N9X6vmRVvs2baM)) | [Visit Preview](https://catalyst-uk-git-customer-access-tokens-bigcommerce-platform.vercel.app) | | Sep 13, 2024 6:19pm | | **catalyst-unstable** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-unstable/9VuPSLd9Ld9tjzJfEgKGierKvmGF)) | [Visit Preview](https://catalyst-unstable-git-customer-acce-2a85d7-bigcommerce-platform.vercel.app) | | Sep 13, 2024 6:19pm |
github-actions[bot] commented 21 hours ago

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-2lg86u15h-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 79
🟢 Accessibility 100
🟢 Best practices 96
🟠 SEO 82

📱 Mobile

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

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