| @bigcommerce/catalyst-client | patch |
|---|---|
| @bigcommerce/catalyst-core | patch |
Update GQL client and auth middleware to handle invalid tokens and invalidate session.
This will ensure that if a user is logged out elsewhere, they will be redirected to the /login page when they try to access a protected route.
Previously, the pages would 404 which is misleading.
- Copy all changes from the
/core/clientdirectory and the/packages/clientdirectory - Copy logic from withAuth middleware to handle the
?invalidate-sessionquery param - Copy translation values
- Copy all changes from the
/core/app/[locale]/(default)/account/directory server actions - Copy all changes from the
/core/app/[locale]/(default)/checkout/route.tsfile