@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.cjs CHANGED
@@ -952,6 +952,9 @@ function installAuthOnClient(client2) {
952
952
  });
953
953
  client2.interceptors.response.use(async (response, request) => {
954
954
  if (response.status !== 401) return response;
955
+ if (/\/accounts\/(otp|oauth|login|register|token)\b/.test(request.url)) {
956
+ return response;
957
+ }
955
958
  if (request.headers.get(RETRY_MARKER)) {
956
959
  expireSession(response);
957
960
  return response;