feat: use customer access tokens for customer logins
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
- Cut a release before merging
- Merge this PR
- Immediately cut another release
🦋 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
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 |
⚡️🏠 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 |