@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/clients.mjs CHANGED
@@ -925,6 +925,9 @@ function installAuthOnClient(client2) {
925
925
  });
926
926
  client2.interceptors.response.use(async (response, request) => {
927
927
  if (response.status !== 401) return response;
928
+ if (/\/accounts\/(otp|oauth|login|register|token)\b/.test(request.url)) {
929
+ return response;
930
+ }
928
931
  if (request.headers.get(RETRY_MARKER)) {
929
932
  expireSession(response);
930
933
  return response;