add SuppressLoginRedirectsForApiCalls helper