Skip to content

NVR with realtime local object detection for IP cameras

403 B
Raw Blame
// Module-level flag to prevent multiple simultaneous redirects
// (eg, when multiple SWR queries fail with 401 at once, or when
// both ApiProvider and ProtectedRoute try to redirect)
let _isRedirectingToLogin = false;

export function isRedirectingToLogin(): boolean {
  return _isRedirectingToLogin;
}

export function setRedirectingToLogin(value: boolean): void {
  _isRedirectingToLogin = value;
}