bigcommerce / stencil-utils

Utility library for the Stencil theme framework.
BSD 4-Clause "Original" or "Old" License
31 stars 44 forks source link

Reload page when we get a 401 back from bcapp #216

Closed jmwiese closed 1 month ago

jmwiese commented 1 month ago

Jira: STRF-12520

What/Why?

Starting with this PR we are going to return a 401 Unauthorized response when an AJAX request is made against a preview storefront with an expired preview session.

This PR should trigger a page reload, which should land the user back on the preview code page to re-enter their code.

Rollout/Rollback

Revert this PR

Testing

Locally and in intg

jairo-bc commented 1 month ago

LGTM