@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/index.cjs CHANGED
@@ -1000,6 +1000,9 @@ function installAuthOnClient(client2) {
1000
1000
  });
1001
1001
  client2.interceptors.response.use(async (response, request) => {
1002
1002
  if (response.status !== 401) return response;
1003
+ if (/\/accounts\/(otp|oauth|login|register|token)\b/.test(request.url)) {
1004
+ return response;
1005
+ }
1003
1006
  if (request.headers.get(RETRY_MARKER)) {
1004
1007
  expireSession(response);
1005
1008
  return response;