@djangocfg/api 2.1.618 → 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.cjs CHANGED
@@ -1863,6 +1863,9 @@ function installAuthOnClient(client2) {
1863
1863
  });
1864
1864
  client2.interceptors.response.use(async (response, request) => {
1865
1865
  if (response.status !== 401) return response;
1866
+ if (/\/accounts\/(otp|oauth|login|register|token)\b/.test(request.url)) {
1867
+ return response;
1868
+ }
1866
1869
  if (request.headers.get(RETRY_MARKER)) {
1867
1870
  expireSession(response);
1868
1871
  return response;