@bigcommerce/catalyst-client@1.0.3
·
3 commits
to canary
since this release
Patch Changes
- #3158
be1967cThanks @jorgemoya! - Surface a clearer error whenBIGCOMMERCE_STOREFRONT_TOKENis not a storefront JWT. Previously an incompatible token (e.g. an OAuth access token) produced a bare 401 with no explanation. The client now detects when a 401 is returned with a token that isn't a well-formed storefront JWT and throwsInvalidStorefrontTokenErrorexplaining that a storefront JWT is required and how to generate one.