@djangocfg/api 2.1.617 → 2.1.619

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hooks.mjs CHANGED
@@ -1723,6 +1723,9 @@ function installAuthOnClient(client2) {
1723
1723
  });
1724
1724
  client2.interceptors.response.use(async (response, request) => {
1725
1725
  if (response.status !== 401) return response;
1726
+ if (/\/accounts\/(otp|oauth|login|register|token)\b/.test(request.url)) {
1727
+ return response;
1728
+ }
1726
1729
  if (request.headers.get(RETRY_MARKER)) {
1727
1730
  expireSession(response);
1728
1731
  return response;